mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
rename entities.ts to ShuttleRepositoryEntities.ts
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { beforeEach, describe, expect, it } from "@jest/globals";
|
||||
import { setupTestServerContext, setupTestServerHolder } from "../testHelpers/apolloTestServerHelpers";
|
||||
import { IEta, IShuttle, IStop, IPassioSystem } from "../../src/entities/entities";
|
||||
import { IEta, IShuttle, IStop } from "../../src/entities/ShuttleRepositoryEntities";
|
||||
import {
|
||||
addMockEtaToRepository, addMockShuttleToRepository,
|
||||
addMockEtaToRepository,
|
||||
addMockShuttleToRepository,
|
||||
addMockStopToRepository,
|
||||
} from "../testHelpers/repositorySetupHelpers";
|
||||
import assert = require("node:assert");
|
||||
@@ -22,7 +23,7 @@ describe("EtaResolvers", () => {
|
||||
});
|
||||
|
||||
async function getResponseForEtaQuery(query: string) {
|
||||
const response = await holder.testServer.executeOperation({
|
||||
return await holder.testServer.executeOperation({
|
||||
query,
|
||||
variables: {
|
||||
systemId: context.systems[0].id,
|
||||
@@ -32,7 +33,6 @@ describe("EtaResolvers", () => {
|
||||
contextValue: context
|
||||
|
||||
});
|
||||
return response;
|
||||
}
|
||||
|
||||
describe("stop", () => {
|
||||
|
||||
Reference in New Issue
Block a user