Fix date type mismatch for data comparison

This commit is contained in:
2025-11-11 18:35:13 -08:00
parent 992a2b6149
commit a3bfa4894e

View File

@@ -736,7 +736,7 @@ describe.each(repositoryImplementations)('$name', (holder) => {
const emittedPayload = listener.mock.calls[0][0] as any;
expect(emittedPayload.shuttleId).toBe(shuttle.id);
expect(emittedPayload.stopId).toBe(stop1.id);
expect(emittedPayload.timestamp.getTime()).toBe(arrivalTime);
expect(emittedPayload.timestamp.getTime()).toBe(arrivalTime.getTime());
});
test("does not emit event when shuttle is not at a stop", async () => {