Skip to content

Commit 514a218

Browse files
authored
Update error message in tally test for invalid input
1 parent ac40924 commit 514a218

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎Sprint-2/implement/tally.test.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,5 @@ test("returns counts for each unique item", () => {
4343
// When passed to tally
4444
// Then it should throw an error
4545
test("throws an error when passed an invalid input like a string", () => {
46-
expect(() => tally("string")).toThrow(TypeError);
4746
expect(() => tally("string")).toThrow("Expected an array as input");
4847
});

0 commit comments

Comments
 (0)