move query string into the function scope

This commit is contained in:
2025-01-28 14:56:23 -08:00
parent cf3f26e255
commit f0828e836c

View File

@@ -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: {