We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65578d2 commit 589841cCopy full SHA for 589841c
Sprint-3/2-practice-tdd/count.test.js
@@ -39,15 +39,15 @@ test("should return 0 when string is empty", () => {
39
});
40
41
// test for str is an array
42
-test("should return 0 when str is an array", () => {
+test("should return 1 when str is an array", () => {
43
const str = ["a", "b", "c"];
44
const char = "a";
45
const count = countChar(str, char);
46
expect(parseInt(count)).toEqual(1);
47
48
49
// test for str is a number
50
-test("should return 0 when str is a number", () => {
+test("should return 1 when str is a number", () => {
51
const str = 12345;
52
const char = "3";
53
0 commit comments