Skip to content

Commit

Permalink
refactor: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Dec 12, 2023
1 parent 5978a20 commit 51dea59
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ ruleTester.run('require-array-sort-compare', rule, {
`,
options: [{ ignoreStringArrays: true }],
},
{
code: `
function f(a: number[]) {
a.toSorted((a, b) => a - b);
}
`,
},
],
invalid: [
{
Expand Down

0 comments on commit 51dea59

Please sign in to comment.