Skip to content

Commit 797c772

Browse files
committed
okok
1 parent 5f4925d commit 797c772

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/executor/src/execution/__tests__/variables-test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
GraphQLString,
1414
Kind,
1515
parse,
16+
versionInfo,
1617
} from 'graphql';
1718
import { createGraphQLError } from '@graphql-tools/utils';
1819
import { expectJSON } from '../../__testUtils__/expectJSON.js';
@@ -243,7 +244,10 @@ describe('Execute: Handles inputs', () => {
243244
},
244245
errors: [
245246
{
246-
message: 'Argument "input" has invalid value {c: "foo", e: "bar"}.',
247+
message:
248+
versionInfo.major === 17
249+
? 'Argument "input" has invalid value { c: "foo", e: "bar"}.'
250+
: 'Argument "input" has invalid value {c: "foo", e: "bar"}.',
247251
path: ['fieldWithObjectInput'],
248252
locations: [{ line: 3, column: 39 }],
249253
},

0 commit comments

Comments
 (0)