mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
move query string into the function scope
This commit is contained in:
@@ -64,22 +64,22 @@ describe("OrderedStopResolvers", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe("nextStop", () => {
|
describe("nextStop", () => {
|
||||||
const query = `
|
async function getResponseForQuery(stopId: string) {
|
||||||
query GetNextStop($systemId: ID!, $routeId: ID!, $stopId: ID!) {
|
const query = `
|
||||||
system(id: $systemId) {
|
query GetNextStop($systemId: ID!, $routeId: ID!, $stopId: ID!) {
|
||||||
route(id: $routeId) {
|
system(id: $systemId) {
|
||||||
orderedStop(forStopId: $stopId) {
|
route(id: $routeId) {
|
||||||
nextStop {
|
orderedStop(forStopId: $stopId) {
|
||||||
routeId
|
nextStop {
|
||||||
stopId
|
routeId
|
||||||
|
stopId
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`;
|
|
||||||
|
|
||||||
async function getResponseForQuery(stopId: string) {
|
|
||||||
return await testServer.executeOperation({
|
return await testServer.executeOperation({
|
||||||
query,
|
query,
|
||||||
variables: {
|
variables: {
|
||||||
|
|||||||
Reference in New Issue
Block a user