Skip to content

Commit 03b238e

Browse files
committed
Fix indentation in count.js and count.test.js
1 parent 1c66099 commit 03b238e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
function countChar(stringOfCharacters, findCharacter) {
22
let characterOccurrence = "";
3-
if (typeof stringOfCharacters === "string" && typeof findCharacter === "string") {
3+
if (
4+
typeof stringOfCharacters === "string" &&
5+
typeof findCharacter === "string"
6+
) {
47
stringOfCharacters = stringOfCharacters.toLowerCase();
58
findCharacter = findCharacter.toLowerCase();
69
if (findCharacter.length === 1) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ test("should count numeric characters correctly in the string", () => {
8989
const char = 2;
9090
const count = countChar(str, char);
9191
expect(count).toEqual("Invalid input: input should be a string");
92-
});
92+
});

0 commit comments

Comments
 (0)