mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
74 lines
1.7 KiB
TypeScript
74 lines
1.7 KiB
TypeScript
import { beforeEach, describe, it } from "@jest/globals";
|
|
import { ApolloServer } from "@apollo/server";
|
|
import { ServerContext } from "../../src/ServerContext";
|
|
import { UnoptimizedInMemoryRepository } from "../../src/repositories/UnoptimizedInMemoryRepository";
|
|
import { setUpTestServer } from "../testHelpers/apolloSetupHelpers";
|
|
|
|
describe("SystemResolvers", () => {
|
|
let testServer: ApolloServer<ServerContext>;
|
|
let repository: UnoptimizedInMemoryRepository;
|
|
|
|
beforeEach(async () => {
|
|
testServer = setUpTestServer();
|
|
repository = new UnoptimizedInMemoryRepository();
|
|
});
|
|
|
|
describe("routes", () => {
|
|
it("gets routes associated with system id", async () => {
|
|
});
|
|
});
|
|
|
|
describe("stops", () => {
|
|
it("gets stops associated with system id", async () => {
|
|
|
|
});
|
|
});
|
|
|
|
describe("stop", () => {
|
|
it("gets the stop with the correct id", async () => {
|
|
|
|
});
|
|
|
|
it("returns null if the stop isn't associated with the system", async () => {
|
|
|
|
});
|
|
|
|
it("returns null if there is no stop", async () => {
|
|
|
|
});
|
|
});
|
|
|
|
describe("route", () => {
|
|
it("gets the route with the correct id", async () => {
|
|
|
|
});
|
|
|
|
it("returns null if the stop isn't associated with the system", async () => {
|
|
|
|
});
|
|
|
|
it("returns null if there is no route", async () => {
|
|
|
|
});
|
|
});
|
|
|
|
describe("shuttle", () => {
|
|
it("gets the shuttle with the correct id", async () => {
|
|
|
|
});
|
|
|
|
it("returns null if the stop isn't associated with the system", async () => {
|
|
|
|
});
|
|
|
|
it("returns null if there is no shuttle", async () => {
|
|
|
|
});
|
|
});
|
|
|
|
describe("shuttles", () => {
|
|
it("gets shuttles associated with system id", async () => {
|
|
|
|
});
|
|
});
|
|
}); |