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:
@ -17,3 +17,7 @@ test('CheckPascalCase(The Algorithms) -> false', () => {
|
||||
const res = CheckPascalCase(word)
|
||||
expect(res).toBeFalsy()
|
||||
})
|
||||
|
||||
test('CheckPascalCase throws when input is not a string', () => {
|
||||
expect(() => CheckPascalCase(100)).toThrowError()
|
||||
})
|
||||
|
Reference in New Issue
Block a user