Skip to content

Commit 3266bbc

Browse files
committed
TDD: Fixed single occurence test sample in count.test.js (changed banana to test)
1 parent 29320b5 commit 3266bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-3/2-practice-tdd/count.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test("should return 0 when character does not appear in string", () => {
3535
// Then it should return 1.
3636
test("should return 1 when character appears exactly once", () => {
3737
expect(countChar("hello", "h")).toEqual(1);
38-
expect(countChar("banana", "n")).toEqual(1);
38+
expect(countChar("test", "e")).toEqual(1);
3939
expect(countChar("xyz", "y")).toEqual(1);
4040
});
4141

0 commit comments

Comments
 (0)