Fix remaining issues with tests, and add implementation within InMemoryParkingRepository.ts

This commit is contained in:
2025-07-01 21:37:26 -04:00
parent 95fa610d77
commit 8fb296027d
3 changed files with 28 additions and 3 deletions

View File

@@ -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,
});