mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
36 lines
976 B
TypeScript
36 lines
976 B
TypeScript
import { beforeEach, describe, it } from "@jest/globals";
|
|
import { ServerContext } from "../../src/ServerContext";
|
|
import { UnoptimizedInMemoryRepository } from "../../src/repositories/UnoptimizedInMemoryRepository";
|
|
import { setUpTestServer } from "../testHelpers/apolloSetupHelpers";
|
|
import { ApolloServer } from "@apollo/server";
|
|
|
|
describe("RouteResolvers", () => {
|
|
let testServer: ApolloServer<ServerContext>;
|
|
let repository: UnoptimizedInMemoryRepository
|
|
|
|
beforeEach(async () => {
|
|
testServer = setUpTestServer();
|
|
repository = new UnoptimizedInMemoryRepository();
|
|
});
|
|
|
|
describe("shuttles", () => {
|
|
it("returns shuttle array if there are shuttles", async () => {
|
|
|
|
});
|
|
|
|
it("returns empty array if there are no shuttles", async () => {
|
|
|
|
});
|
|
});
|
|
|
|
describe("orderedStop", () => {
|
|
it("returns ordered stop for stop ID if there is one", async () => {
|
|
|
|
});
|
|
|
|
it("returns null if there is no stop", async () => {
|
|
|
|
});
|
|
});
|
|
});
|