mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
fix: throw error instead of returning it (#1624)
This commit is contained in:
@ -15,4 +15,8 @@ describe('checkCamelCase', () => {
|
||||
const result = checkCamelCase(value)
|
||||
expect(result).toBe(false)
|
||||
})
|
||||
|
||||
it('should throw when input is not a string', () => {
|
||||
expect(() => checkCamelCase(100)).toThrowError()
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user