Skip to content

Commit 589841c

Browse files
committed
fixed typo in count.test.js
1 parent 65578d2 commit 589841c

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
@@ -39,15 +39,15 @@ test("should return 0 when string is empty", () => {
3939
});
4040

4141
// test for str is an array
42-
test("should return 0 when str is an array", () => {
42+
test("should return 1 when str is an array", () => {
4343
const str = ["a", "b", "c"];
4444
const char = "a";
4545
const count = countChar(str, char);
4646
expect(parseInt(count)).toEqual(1);
4747
});
4848

4949
// test for str is a number
50-
test("should return 0 when str is a number", () => {
50+
test("should return 1 when str is a number", () => {
5151
const str = 12345;
5252
const char = "3";
5353
const count = countChar(str, char);

0 commit comments

Comments
 (0)