mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
update test data for correctness
This commit is contained in:
@@ -48,15 +48,13 @@ describe("EtaResolvers", () => {
|
||||
const stops = generateMockStops();
|
||||
const stop = stops[0];
|
||||
stop.systemId = mockSystem.id;
|
||||
await repository.addOrUpdateStop(stop);
|
||||
|
||||
const etas = generateMockEtas();
|
||||
await Promise.all(etas.map(async (eta) => {
|
||||
eta.stopId = stop.id;
|
||||
await repository.addOrUpdateEta(eta);
|
||||
}));
|
||||
const expectedEta = etas[0];
|
||||
|
||||
await repository.addOrUpdateStop(stop);
|
||||
expectedEta.stopId = stop.id;
|
||||
expectedEta.shuttleId = mockShuttle.id;
|
||||
await repository.addOrUpdateEta(expectedEta);
|
||||
|
||||
const response = await testServer.executeOperation({
|
||||
query,
|
||||
|
||||
Reference in New Issue
Block a user