Skip to content

Commit 740d028

Browse files
committed
Merge branch 'master' into use-search-params
1 parent 420bd18 commit 740d028

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

packages/plugin/src/rules/naming-convention/index.test.ts

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -488,15 +488,42 @@ ruleTester.run<RuleOptions>('naming-convention', rule, {
488488
`,
489489
options: (rule.meta.docs!.configOptions as any).operations,
490490
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+
},
500527
],
501528
},
502529
{

0 commit comments

Comments
 (0)