Skip to content

Commit

Permalink
add valid case
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-zhang-at-salesforce committed May 21, 2024
1 parent d24caf3 commit 26137ec
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion test/rules/graphql/no-aggregate-query-supported.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ `
Expand Down

0 comments on commit 26137ec

Please sign in to comment.