mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Fix remaining issues with tests, and add implementation within InMemoryParkingRepository.ts
This commit is contained in:
@@ -57,8 +57,8 @@ describe("InMemoryParkingRepository", () => {
|
||||
jest.setSystemTime(now + PARKING_LOGGING_INTERVAL_MS + 60);
|
||||
await repository.addOrUpdateParkingStructure(testStructure);
|
||||
|
||||
expect(historicalData.get(testStructure.id)).toContain(expectedTimestampRecordMatcher);
|
||||
expect(historicalData.get(testStructure.id)).toContain({
|
||||
expect(historicalData.get(testStructure.id)).toContainEqual(expectedTimestampRecordMatcher);
|
||||
expect(historicalData.get(testStructure.id)).toContainEqual({
|
||||
...expectedTimestampRecordMatcher,
|
||||
timestampMs: now + PARKING_LOGGING_INTERVAL_MS + 60,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user