Skip to content

Commit

Permalink
remove a few extra quotes for consistency of the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Mar 20, 2024
1 parent 80f3a1c commit d2275f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/type/__tests__/introspection-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ describe('Introspection', () => {
errors: [
{
message:
'Argument <meta>.__type(name:) of type "String!" is required, but it was not provided.',
'Argument <meta>.__type(name:) of type String! is required, but it was not provided.',
locations: [{ line: 3, column: 9 }],
},
],
Expand Down
22 changes: 11 additions & 11 deletions src/validation/__tests__/ProvidedRequiredArgumentsRule-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ describe('Validate: Provided required arguments', () => {
`).toDeepEqual([
{
message:
'Argument ComplicatedArgs.multipleReqs(req1:) of type "Int!" is required, but it was not provided.',
'Argument ComplicatedArgs.multipleReqs(req1:) of type Int! is required, but it was not provided.',
locations: [{ line: 4, column: 13 }],
},
]);
Expand All @@ -184,12 +184,12 @@ describe('Validate: Provided required arguments', () => {
`).toDeepEqual([
{
message:
'Argument ComplicatedArgs.multipleReqs(req1:) of type "Int!" is required, but it was not provided.',
'Argument ComplicatedArgs.multipleReqs(req1:) of type Int! is required, but it was not provided.',
locations: [{ line: 4, column: 13 }],
},
{
message:
'Argument ComplicatedArgs.multipleReqs(req2:) of type "Int!" is required, but it was not provided.',
'Argument ComplicatedArgs.multipleReqs(req2:) of type Int! is required, but it was not provided.',
locations: [{ line: 4, column: 13 }],
},
]);
Expand All @@ -205,7 +205,7 @@ describe('Validate: Provided required arguments', () => {
`).toDeepEqual([
{
message:
'Argument ComplicatedArgs.multipleReqs(req2:) of type "Int!" is required, but it was not provided.',
'Argument ComplicatedArgs.multipleReqs(req2:) of type Int! is required, but it was not provided.',
locations: [{ line: 4, column: 13 }],
},
]);
Expand Down Expand Up @@ -244,12 +244,12 @@ describe('Validate: Provided required arguments', () => {
`).toDeepEqual([
{
message:
'Argument @include(if:) of type "Boolean!" is required, but it was not provided.',
'Argument @include(if:) of type Boolean! is required, but it was not provided.',
locations: [{ line: 3, column: 15 }],
},
{
message:
'Argument @skip(if:) of type "Boolean!" is required, but it was not provided.',
'Argument @skip(if:) of type Boolean! is required, but it was not provided.',
locations: [{ line: 4, column: 18 }],
},
]);
Expand Down Expand Up @@ -277,7 +277,7 @@ describe('Validate: Provided required arguments', () => {
`).toDeepEqual([
{
message:
'Argument @test(arg:) of type "String!" is required, but it was not provided.',
'Argument @test(arg:) of type String! is required, but it was not provided.',
locations: [{ line: 3, column: 23 }],
},
]);
Expand All @@ -291,7 +291,7 @@ describe('Validate: Provided required arguments', () => {
`).toDeepEqual([
{
message:
'Argument @include(if:) of type "Boolean!" is required, but it was not provided.',
'Argument @include(if:) of type Boolean! is required, but it was not provided.',
locations: [{ line: 3, column: 23 }],
},
]);
Expand All @@ -306,7 +306,7 @@ describe('Validate: Provided required arguments', () => {
`).toDeepEqual([
{
message:
'Argument @deprecated(reason:) of type "String!" is required, but it was not provided.',
'Argument @deprecated(reason:) of type String! is required, but it was not provided.',
locations: [{ line: 3, column: 23 }],
},
]);
Expand All @@ -328,7 +328,7 @@ describe('Validate: Provided required arguments', () => {
).toDeepEqual([
{
message:
'Argument @test(arg:) of type "String!" is required, but it was not provided.',
'Argument @test(arg:) of type String! is required, but it was not provided.',
locations: [{ line: 4, column: 30 }],
},
]);
Expand All @@ -350,7 +350,7 @@ describe('Validate: Provided required arguments', () => {
).toDeepEqual([
{
message:
'Argument @test(arg:) of type "String!" is required, but it was not provided.',
'Argument @test(arg:) of type String! is required, but it was not provided.',
locations: [{ line: 2, column: 29 }],
},
]);
Expand Down
4 changes: 2 additions & 2 deletions src/validation/rules/ProvidedRequiredArgumentsRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function ProvidedRequiredArgumentsRule(
if (!providedArgs.has(argDef.name) && isRequiredArgument(argDef)) {
context.reportError(
new GraphQLError(
`Argument ${argDef} of type "${argDef.type}" is required, but it was not provided.`,
`Argument ${argDef} of type ${argDef.type} is required, but it was not provided.`,
{ nodes: fieldNode },
),
);
Expand Down Expand Up @@ -114,7 +114,7 @@ export function ProvidedRequiredArgumentsOnDirectivesRule(
: print(argDef.type);
context.reportError(
new GraphQLError(
`Argument @${directiveName}(${argName}:) of type "${argType}" is required, but it was not provided.`,
`Argument @${directiveName}(${argName}:) of type ${argType} is required, but it was not provided.`,
{ nodes: directiveNode },
),
);
Expand Down

0 comments on commit d2275f2

Please sign in to comment.