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