Skip to content

Commit 3741e77

Browse files
Update count.test.js
1 parent 0ccc611 commit 3741e77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// ═══════════════════════════════════════════════════════
77

88
// implement a function countChar that counts the number of times a character occurs in a string
9-
const countChar = require("./count");
9+
//const countChar = require("./count");
1010

1111
// ───────────────────────────────────────────────────────
1212
// 📋 Specification:
@@ -25,6 +25,7 @@ const countChar = require("./count");
2525
// And a character `char` that occurs one or more times in `str` (e.g., 'a' in 'aaaaa'),
2626
// When the function is called with these inputs,
2727
// Then it should correctly count occurrences of `char`.
28+
const countChar = require("./count");
2829
test("should count multiple occurrences of a character", () => {
2930
const str = "aaaaa"; // 🎯 Input: repeated character
3031
const char = "a"; // 🔍 Search for: 'a'

0 commit comments

Comments
 (0)