Skip to content

Commit b24ce7f

Browse files
committed
Fix test descriptions on line 33
1 parent 7470027 commit b24ce7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test("returns 0 if the character is not in the string", () => {
3030
expect(count).toBe(0);
3131
});
3232

33-
test("counts a character that appears once", () => {
33+
test("returns 1 when the character appears once in the string", () => {
3434
const str = "bread";
3535
const char = "d";
3636
const count = countChar(str, char);
@@ -42,4 +42,4 @@ test("counts how many times a character appears", () => {
4242
const char = "b";
4343
const count = countChar(str, char);
4444
expect(count).toBe(2);
45-
});
45+
});

0 commit comments

Comments
 (0)