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,6 +64,7 @@ describe("OrderedStopResolvers", () => {
|
||||
}
|
||||
|
||||
describe("nextStop", () => {
|
||||
async function getResponseForQuery(stopId: string) {
|
||||
const query = `
|
||||
query GetNextStop($systemId: ID!, $routeId: ID!, $stopId: ID!) {
|
||||
system(id: $systemId) {
|
||||
@@ -79,7 +80,6 @@ describe("OrderedStopResolvers", () => {
|
||||
}
|
||||
`;
|
||||
|
||||
async function getResponseForQuery(stopId: string) {
|
||||
return await testServer.executeOperation({
|
||||
query,
|
||||
variables: {
|
||||
|
||||
Reference in New Issue
Block a user