@@ -74,7 +74,7 @@ describe('Validate: Known directives', () => {
7474 }
7575 ` ) . to . deep . equal ( [
7676 {
77- message : 'Unknown directive "unknown".' ,
77+ message : 'Unknown directive "@ unknown".' ,
7878 locations : [ { line : 3 , column : 13 } ] ,
7979 } ,
8080 ] ) ;
@@ -95,15 +95,15 @@ describe('Validate: Known directives', () => {
9595 }
9696 ` ) . to . deep . equal ( [
9797 {
98- message : 'Unknown directive "unknown".' ,
98+ message : 'Unknown directive "@ unknown".' ,
9999 locations : [ { line : 3 , column : 13 } ] ,
100100 } ,
101101 {
102- message : 'Unknown directive "unknown".' ,
102+ message : 'Unknown directive "@ unknown".' ,
103103 locations : [ { line : 6 , column : 15 } ] ,
104104 } ,
105105 {
106- message : 'Unknown directive "unknown".' ,
106+ message : 'Unknown directive "@ unknown".' ,
107107 locations : [ { line : 8 , column : 16 } ] ,
108108 } ,
109109 ] ) ;
@@ -144,19 +144,19 @@ describe('Validate: Known directives', () => {
144144 }
145145 ` ) . to . deep . equal ( [
146146 {
147- message : 'Directive "include" may not be used on QUERY.' ,
147+ message : 'Directive "@ include" may not be used on QUERY.' ,
148148 locations : [ { line : 2 , column : 32 } ] ,
149149 } ,
150150 {
151- message : 'Directive "onQuery" may not be used on FIELD.' ,
151+ message : 'Directive "@ onQuery" may not be used on FIELD.' ,
152152 locations : [ { line : 3 , column : 14 } ] ,
153153 } ,
154154 {
155- message : 'Directive "onQuery" may not be used on FRAGMENT_SPREAD.' ,
155+ message : 'Directive "@ onQuery" may not be used on FRAGMENT_SPREAD.' ,
156156 locations : [ { line : 4 , column : 17 } ] ,
157157 } ,
158158 {
159- message : 'Directive "onQuery" may not be used on MUTATION.' ,
159+ message : 'Directive "@ onQuery" may not be used on MUTATION.' ,
160160 locations : [ { line : 7 , column : 20 } ] ,
161161 } ,
162162 ] ) ;
@@ -169,7 +169,7 @@ describe('Validate: Known directives', () => {
169169 }
170170 ` ) . to . deep . equal ( [
171171 {
172- message : 'Directive "onField" may not be used on VARIABLE_DEFINITION.' ,
172+ message : 'Directive "@ onField" may not be used on VARIABLE_DEFINITION.' ,
173173 locations : [ { line : 2 , column : 31 } ] ,
174174 } ,
175175 ] ) ;
@@ -248,7 +248,7 @@ describe('Validate: Known directives', () => {
248248 schema ,
249249 ) . to . deep . equal ( [
250250 {
251- message : 'Unknown directive "unknown".' ,
251+ message : 'Unknown directive "@ unknown".' ,
252252 locations : [ { line : 2 , column : 29 } ] ,
253253 } ,
254254 ] ) ;
@@ -331,64 +331,64 @@ describe('Validate: Known directives', () => {
331331 schemaWithSDLDirectives ,
332332 ) . to . deep . equal ( [
333333 {
334- message : 'Directive "onInterface" may not be used on OBJECT.' ,
334+ message : 'Directive "@ onInterface" may not be used on OBJECT.' ,
335335 locations : [ { line : 2 , column : 45 } ] ,
336336 } ,
337337 {
338338 message :
339- 'Directive "onInputFieldDefinition" may not be used on ARGUMENT_DEFINITION.' ,
339+ 'Directive "@ onInputFieldDefinition" may not be used on ARGUMENT_DEFINITION.' ,
340340 locations : [ { line : 3 , column : 32 } ] ,
341341 } ,
342342 {
343343 message :
344- 'Directive "onInputFieldDefinition" may not be used on FIELD_DEFINITION.' ,
344+ 'Directive "@ onInputFieldDefinition" may not be used on FIELD_DEFINITION.' ,
345345 locations : [ { line : 3 , column : 65 } ] ,
346346 } ,
347347 {
348- message : 'Directive "onEnum" may not be used on SCALAR.' ,
348+ message : 'Directive "@ onEnum" may not be used on SCALAR.' ,
349349 locations : [ { line : 6 , column : 27 } ] ,
350350 } ,
351351 {
352- message : 'Directive "onObject" may not be used on INTERFACE.' ,
352+ message : 'Directive "@ onObject" may not be used on INTERFACE.' ,
353353 locations : [ { line : 8 , column : 33 } ] ,
354354 } ,
355355 {
356356 message :
357- 'Directive "onInputFieldDefinition" may not be used on ARGUMENT_DEFINITION.' ,
357+ 'Directive "@ onInputFieldDefinition" may not be used on ARGUMENT_DEFINITION.' ,
358358 locations : [ { line : 9 , column : 32 } ] ,
359359 } ,
360360 {
361361 message :
362- 'Directive "onInputFieldDefinition" may not be used on FIELD_DEFINITION.' ,
362+ 'Directive "@ onInputFieldDefinition" may not be used on FIELD_DEFINITION.' ,
363363 locations : [ { line : 9 , column : 65 } ] ,
364364 } ,
365365 {
366- message : 'Directive "onEnumValue" may not be used on UNION.' ,
366+ message : 'Directive "@ onEnumValue" may not be used on UNION.' ,
367367 locations : [ { line : 12 , column : 25 } ] ,
368368 } ,
369369 {
370- message : 'Directive "onScalar" may not be used on ENUM.' ,
370+ message : 'Directive "@ onScalar" may not be used on ENUM.' ,
371371 locations : [ { line : 14 , column : 23 } ] ,
372372 } ,
373373 {
374- message : 'Directive "onUnion" may not be used on ENUM_VALUE.' ,
374+ message : 'Directive "@ onUnion" may not be used on ENUM_VALUE.' ,
375375 locations : [ { line : 15 , column : 22 } ] ,
376376 } ,
377377 {
378- message : 'Directive "onEnum" may not be used on INPUT_OBJECT.' ,
378+ message : 'Directive "@ onEnum" may not be used on INPUT_OBJECT.' ,
379379 locations : [ { line : 18 , column : 25 } ] ,
380380 } ,
381381 {
382382 message :
383- 'Directive "onArgumentDefinition" may not be used on INPUT_FIELD_DEFINITION.' ,
383+ 'Directive "@ onArgumentDefinition" may not be used on INPUT_FIELD_DEFINITION.' ,
384384 locations : [ { line : 19 , column : 26 } ] ,
385385 } ,
386386 {
387- message : 'Directive "onObject" may not be used on SCHEMA.' ,
387+ message : 'Directive "@ onObject" may not be used on SCHEMA.' ,
388388 locations : [ { line : 22 , column : 18 } ] ,
389389 } ,
390390 {
391- message : 'Directive "onObject" may not be used on SCHEMA.' ,
391+ message : 'Directive "@ onObject" may not be used on SCHEMA.' ,
392392 locations : [ { line : 26 , column : 25 } ] ,
393393 } ,
394394 ] ) ;
0 commit comments