mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
Add testcase to checkKebabCase (#1027)
This commit is contained in:
13
String/test/CheckKebabCase.test.js
Normal file
13
String/test/CheckKebabCase.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
import { CheckKebabCase } from '../CheckKebabCase'
|
||||
|
||||
test('CheckKebabCase(The-Algorithms) -> true', () => {
|
||||
const word = 'The-Algorithms'
|
||||
const res = CheckKebabCase(word)
|
||||
expect(res).toBeTruthy()
|
||||
})
|
||||
|
||||
test('CheckKebabCase(The Algorithms) -> false', () => {
|
||||
const word = 'The Algorithms'
|
||||
const res = CheckKebabCase(word)
|
||||
expect(res).toBeFalsy()
|
||||
})
|
Reference in New Issue
Block a user