Skip to content

Commit 9fe1206

Browse files
committed
fix: remove unnecessary comments and documentation in dedupe tests for clarity
1 parent 586f2b0 commit 9fe1206

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

‎Sprint-1/implement/dedupe.test.js‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
const dedupe = require("./dedupe.js");
2-
/*
3-
Dedupe Array
42

5-
📖 Dedupe means **deduplicate**
6-
7-
In this kata, you will need to deduplicate the elements of an array
8-
9-
E.g. dedupe(['a','a','a','b','b','c']) returns ['a','b','c']
10-
E.g. dedupe([5, 1, 1, 2, 3, 2, 5, 8]) returns [5, 1, 2, 3, 8]
11-
E.g. dedupe([1, 2, 1]) returns [1, 2]
12-
*/
13-
14-
// Acceptance Criteria:
15-
16-
// Given an empty array
17-
// When passed to the dedupe function
18-
// Then it should return an empty array
193
test("given an empty array, it returns an empty array", () => {
204
expect(dedupe([])).toEqual([]);
215
});
@@ -27,12 +11,3 @@ test("returns a a copy with no duplicates", () => {
2711
test("keeps the first occurrence order", () => {
2812
expect(dedupe([5, 1, 1, 2, 3, 2, 5, 8])).toEqual([5, 1, 2, 3, 8]);
2913
});
30-
31-
// Given an array with no duplicates
32-
// When passed to the dedupe function
33-
// Then it should return a copy of the original array
34-
35-
// Given an array of strings or numbers
36-
// When passed to the dedupe function
37-
// Then it should return a new array with duplicates removed while preserving the
38-
// first occurrence of each element from the original array.

0 commit comments

Comments
 (0)