Skip to content

Commit 1a64458

Browse files
updated test case description
1 parent 6c0be54 commit 1a64458

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
@@ -50,7 +50,7 @@ test("should return 0 if the character doesn't appear in the string", () => {
5050
expect(count).toEqual(0);
5151
});
5252

53-
test("should return 0 if the character doesn't appear in the string", () => {
53+
test("should return 1 when substring appears once in the string", () => {
5454
const str = "aaca";
5555
const char = "ac";
5656
const count = countChar(str, char);

0 commit comments

Comments
 (0)