mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
Fix date type mismatch for data comparison
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user