Skip to content

Commit 14a4cc4

Browse files
Update test cases in includes.test.js for accuracy and clarity
1 parent c049862 commit 14a4cc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Sprint-1/refactor/includes.test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ test("returns true when target is in array", () => {
1010
});
1111

1212
test("returns false when target not in array", () => {
13-
const currentOutput = includes([1, 2, 3, 4], "a");
13+
const currentOutput = includes([1, 2, 3, 4], "b");
1414
const targetOutput = false;
1515

1616
expect(currentOutput).toEqual(targetOutput);
1717
});
1818

1919
test("returns true when the target is in array multiple times", () => {
20-
const currentOutput = includes([1, 2, 2, 3], 2);
20+
const currentOutput = includes([1, 2, 3, 3], 3);
2121
const targetOutput = true;
2222

2323
expect(currentOutput).toEqual(targetOutput);

0 commit comments

Comments
 (0)