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