Skip to content

Commit

Permalink
test(graphql): add unsupported case test
Browse files Browse the repository at this point in the history
add test for unsupported case for documentation's sake.
  • Loading branch information
thiagomini committed Oct 25, 2022
1 parent 2a06e5e commit 2ae15c9
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -193,5 +193,13 @@ describe('getNumberOfArguments', () => {

expect(getNumberOfArguments(functionWithArray)).toBe(2);
});

// This test is skipped because we don't support it yet.
it.skip('should count correctly for arrow functions without parenthesis', () => {
// prettier-ignore
const leanArrowFunction = x => x + 2;

expect(getNumberOfArguments(leanArrowFunction)).toBe(1);
});
});
});

0 comments on commit 2ae15c9

Please sign in to comment.