Skip to content

Commit 8b01f87

Browse files
Fix error type in tally test for invalid input
1 parent aae237d commit 8b01f87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ test('tally with duplicate items returns the count for each unique item', ()=>{
3737
// When passed to tally
3838
// Then it should throw an error
3939
test('tally with invalid input like a string, throw an error', ()=>{
40-
expect(()=>tally("")).toThrow(Error)
40+
expect(()=>tally("")).toThrow(typeError)
4141
})

0 commit comments

Comments
 (0)