mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-07 02:05:08 +08:00
fix: throw error instead of returning it (#1624)
This commit is contained in:
@ -11,3 +11,7 @@ test('CheckKebabCase(The Algorithms) -> false', () => {
|
||||
const res = CheckKebabCase(word)
|
||||
expect(res).toBeFalsy()
|
||||
})
|
||||
|
||||
test('CheckKebabCase throws when input is not a string', () => {
|
||||
expect(() => CheckKebabCase(100)).toThrowError()
|
||||
})
|
||||
|
Reference in New Issue
Block a user