Add testcase to checkKebabCase (#1027)

This commit is contained in:
Ankush263
2022-05-30 19:48:42 +05:30
committed by GitHub
parent 92a81a2290
commit 9befd923b1

View 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()
})