Skip to content

Commit 2f0b347

Browse files
authored
feat: remove .sort() from test files
1 parent ca2eee9 commit 2f0b347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

16_permutations/solution/permutations-solution.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ const permutations = require("./permutations-solution");
22

33
describe("permutations", () => {
44
test("1 possible permutation for a set containing 0 numbers", () => {
5-
expect(permutations([]).sort()).toEqual([[]].sort());
5+
expect(permutations([])).toEqual([[]]);
66
});
77
test("1 possible permutation for a set containing 1 number", () => {
8-
expect(permutations([1]).sort()).toEqual([[1]].sort());
8+
expect(permutations([1])).toEqual([[1]]);
99
});
1010
test("2 possible permutations for a set containing 2 numbers", () => {
1111
expect(permutations([1, 2]).sort()).toEqual(

0 commit comments

Comments
 (0)