From 26137ec02fce860e62c5dff90ad3e4e524323c2b Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Tue, 21 May 2024 14:54:52 -0700 Subject: [PATCH] add valid case --- .../no-aggregate-query-supported.spec.ts | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/test/rules/graphql/no-aggregate-query-supported.spec.ts b/test/rules/graphql/no-aggregate-query-supported.spec.ts index 6413730..a034b7e 100644 --- a/test/rules/graphql/no-aggregate-query-supported.spec.ts +++ b/test/rules/graphql/no-aggregate-query-supported.spec.ts @@ -12,7 +12,28 @@ const ruleTester = new RuleTester({ }); ruleTester.run('@salesforce/lwc-mobile/no-aggregate-query-supported', rule as any, { - valid: [], + valid: [ + { + code: /* GraphQL */ ` + query accountQuery { + uiapi { + query { + Account { + edges { + node { + Id + Name { + value + } + } + } + } + } + } + } + ` + } + ], invalid: [ { code: /* GraphQL */ `