Skip to content

Commit 11c8346

Browse files
Corrected syntax errors and indentation
1 parent e4de3c6 commit 11c8346

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ test("should count multiple occurrences of a character", () => {
2424
// Then it should return 0, indicating that no occurrences of `char` were found.
2525

2626
test("should count multiple occurrences of a character", () => {
27-
expect(countChar("aaaaa", 'b")).toEqual(5);
28-
expect(countChar("blind", 'a)).toEqual(0);
29-
expect(countChar("blood", 'o")).toEqual(2);
30-
expect(countChar("bbbrf", 'b")).toEqual(3);
31-
expect(countChar("ooooa", 'o")).toEqual(4);
32-
});
33-
27+
expect(countChar("aaaaa", "b")).toEqual(5);
28+
expect(countChar("blind", "a")).toEqual(0);
29+
expect(countChar("blood", "o")).toEqual(2);
30+
expect(countChar("bbbrf", "b")).toEqual(3);
31+
expect(countChar("ooooa", "o")).toEqual(4);
32+
});
3433

3534
// handling invalid input
3635
// the tests work assuming that only letters are in the string

0 commit comments

Comments
 (0)