diff --git a/String/test/CheckKebabCase.test.js b/String/test/CheckKebabCase.test.js new file mode 100644 index 000000000..c275c7bde --- /dev/null +++ b/String/test/CheckKebabCase.test.js @@ -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() +})