mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
fix: throw error instead of returning it (#1624)
This commit is contained in:
@ -15,4 +15,8 @@ describe('checkFlatCase function', () => {
|
||||
const actual = checkFlatCase('abcdefghijklmnopqrstuvwxyz')
|
||||
expect(actual).toBe(true)
|
||||
})
|
||||
|
||||
it('should throw when input is not a string', () => {
|
||||
expect(() => checkFlatCase(100)).toThrowError()
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user