Skip to content

Commit 89d6df2

Browse files
committed
return 0 for an empty array
1 parent 747bdba commit 89d6df2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

starter-code/tests/FunctionsAndArraysSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ describe("Counting Repetition - howManyTimes", function() {
203203
expect(typeof howManyTimes).toBe("function");
204204
});
205205

206-
it("returns false with an empty array", function() {
207-
expect(howManyTimes([])).toBe(false);
206+
it("returns 0 with an empty array", function() {
207+
expect(howManyTimes([])).toBe(0);
208208
});
209209

210210
it("returns one when the word appears only one time on the array", function() {

0 commit comments

Comments
 (0)