Skip to content

Commit 9befd92

Browse files
authored
Add testcase to checkKebabCase (TheAlgorithms#1027)
1 parent 92a81a2 commit 9befd92

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

String/test/CheckKebabCase.test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { CheckKebabCase } from '../CheckKebabCase'
2+
3+
test('CheckKebabCase(The-Algorithms) -> true', () => {
4+
const word = 'The-Algorithms'
5+
const res = CheckKebabCase(word)
6+
expect(res).toBeTruthy()
7+
})
8+
9+
test('CheckKebabCase(The Algorithms) -> false', () => {
10+
const word = 'The Algorithms'
11+
const res = CheckKebabCase(word)
12+
expect(res).toBeFalsy()
13+
})

0 commit comments

Comments
 (0)