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 6378b4b commit a234c5aCopy full SHA for a234c5a
Sprint-1/implement/dedupe.test.js
@@ -26,9 +26,11 @@ describe("dedupe", () => {
26
// Then it should return a copy of the original array
27
test("should return a copy of the original array when there are no duplicates", () => {
28
const input = [1, 2, 3];
29
- expect(dedupe(input)).toEqual(input);
30
31
- expect(dedupe(input)).not.toBe(input);
+ const result = dedupe(input);
+
32
+ expect(result).toEqual([1, 2, 3]);
33
+ expect(result).not.toBe(input);
34
});
35
36
// Given an array of strings or numbers
0 commit comments