mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add test cases for route resolver tests
This commit is contained in:
35
test/resolvers/RouteResolverTests.test.ts
Normal file
35
test/resolvers/RouteResolverTests.test.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
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 () => {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user