mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Pass new configuration option in apolloTestServerHelpers
This commit is contained in:
@@ -3,7 +3,7 @@ import { ApolloServer } from "@apollo/server";
|
||||
import { MergedResolvers } from "../src/MergedResolvers";
|
||||
import { beforeEach } from "@jest/globals";
|
||||
import { ServerContext } from "../src/ServerContext";
|
||||
import { InterchangeSystem } from "../src/entities/InterchangeSystem";
|
||||
import { InterchangeSystem, InterchangeSystemBuilderArguments } from "../src/entities/InterchangeSystem";
|
||||
import {
|
||||
ChapmanApiBasedParkingRepositoryLoader
|
||||
} from "../src/loaders/parking/ChapmanApiBasedParkingRepositoryLoader";
|
||||
@@ -19,11 +19,12 @@ function setUpTestServer() {
|
||||
});
|
||||
}
|
||||
|
||||
const systemInfoForTesting = {
|
||||
const systemInfoForTesting: InterchangeSystemBuilderArguments = {
|
||||
id: "1",
|
||||
name: "Chapman University",
|
||||
passioSystemId: "263",
|
||||
parkingSystemId: ChapmanApiBasedParkingRepositoryLoader.id,
|
||||
useSelfUpdatingEtas: false,
|
||||
};
|
||||
|
||||
export function buildSystemForTesting() {
|
||||
|
||||
Reference in New Issue
Block a user