@@ -488,15 +488,42 @@ ruleTester.run<RuleOptions>('naming-convention', rule, {
488
488
` ,
489
489
options : ( rule . meta . docs ! . configOptions as any ) . operations ,
490
490
errors : [
491
- { message : 'Query "TestQuery" should not contain the forbidden pattern "/(query|mutation|subscription)$/i"' } ,
492
- { message : 'Query "QueryTest" should not contain the forbidden pattern "/^(query|mutation|subscription|get)/i"' } ,
493
- { message : 'Query "GetQuery" should not contain the forbidden pattern "/^(query|mutation|subscription|get)/i"' } ,
494
- { message : 'Mutation "TestMutation" should not contain the forbidden pattern "/(query|mutation|subscription)$/i"' } ,
495
- { message : 'Mutation "MutationTest" should not contain the forbidden pattern "/^(query|mutation|subscription|get)/i"' } ,
496
- { message : 'Subscription "TestSubscription" should not contain the forbidden pattern "/(query|mutation|subscription)$/i"' } ,
497
- { message : 'Subscription "SubscriptionTest" should not contain the forbidden pattern "/^(query|mutation|subscription|get)/i"' } ,
498
- { message : 'Fragment "TestFragment" should not contain the forbidden pattern "/(^fragment)|(fragment$)/i"' } ,
499
- { message : 'Fragment "FragmentTest" should not contain the forbidden pattern "/(^fragment)|(fragment$)/i"' } ,
491
+ {
492
+ message :
493
+ 'Query "TestQuery" should not contain the forbidden pattern "/(query|mutation|subscription)$/i"' ,
494
+ } ,
495
+ {
496
+ message :
497
+ 'Query "QueryTest" should not contain the forbidden pattern "/^(query|mutation|subscription|get)/i"' ,
498
+ } ,
499
+ {
500
+ message :
501
+ 'Query "GetQuery" should not contain the forbidden pattern "/^(query|mutation|subscription|get)/i"' ,
502
+ } ,
503
+ {
504
+ message :
505
+ 'Mutation "TestMutation" should not contain the forbidden pattern "/(query|mutation|subscription)$/i"' ,
506
+ } ,
507
+ {
508
+ message :
509
+ 'Mutation "MutationTest" should not contain the forbidden pattern "/^(query|mutation|subscription|get)/i"' ,
510
+ } ,
511
+ {
512
+ message :
513
+ 'Subscription "TestSubscription" should not contain the forbidden pattern "/(query|mutation|subscription)$/i"' ,
514
+ } ,
515
+ {
516
+ message :
517
+ 'Subscription "SubscriptionTest" should not contain the forbidden pattern "/^(query|mutation|subscription|get)/i"' ,
518
+ } ,
519
+ {
520
+ message :
521
+ 'Fragment "TestFragment" should not contain the forbidden pattern "/(^fragment)|(fragment$)/i"' ,
522
+ } ,
523
+ {
524
+ message :
525
+ 'Fragment "FragmentTest" should not contain the forbidden pattern "/(^fragment)|(fragment$)/i"' ,
526
+ } ,
500
527
] ,
501
528
} ,
502
529
{
0 commit comments