We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dcc6d3 commit faa0f40Copy full SHA for faa0f40
1 file changed
Sprint-1/implement/dedupe.test.js
@@ -30,6 +30,8 @@ test("given an array with no duplicates, it returns a copy of the original array
30
expect(result).toEqual(input);
31
// Check it's a different array, not the same reference
32
expect(result).not.toBe(input);
33
+ // Check that a duplicate input is correctly deduped in the result
34
+ expect(dedupe([1, 1, 2, 3])).toEqual([1, 2, 3]);
35
});
36
37
// Given an array with strings or numbers
0 commit comments