mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
Refactor updateShuttleLastStopArrival to use shuttle ID
This commit is contained in:
@@ -212,7 +212,7 @@ describe("RedisShuttleRepository", () => {
|
||||
timestamp: new Date("2024-01-15T10:30:00Z"),
|
||||
};
|
||||
|
||||
await repository.updateShuttleLastStopArrival(shuttle, stopArrival);
|
||||
await repository.updateShuttleLastStopArrival(shuttle.id, stopArrival);
|
||||
const result = await repository.getShuttleLastStopArrival(shuttle.id);
|
||||
|
||||
expect(result).toBeDefined();
|
||||
@@ -243,8 +243,8 @@ describe("RedisShuttleRepository", () => {
|
||||
timestamp: new Date("2024-01-15T10:35:00Z"),
|
||||
};
|
||||
|
||||
await repository.updateShuttleLastStopArrival(shuttle, firstArrival);
|
||||
await repository.updateShuttleLastStopArrival(shuttle, secondArrival);
|
||||
await repository.updateShuttleLastStopArrival(shuttle.id, firstArrival);
|
||||
await repository.updateShuttleLastStopArrival(shuttle.id, secondArrival);
|
||||
|
||||
const result = await repository.getShuttleLastStopArrival(shuttle.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user