From 9befd923b13b847ac09a1bd5108c0c7a64bcd762 Mon Sep 17 00:00:00 2001 From: Ankush263 <86042508+Ankush263@users.noreply.github.com> Date: Mon, 30 May 2022 19:48:42 +0530 Subject: [PATCH] Add testcase to checkKebabCase (#1027) --- String/test/CheckKebabCase.test.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 String/test/CheckKebabCase.test.js 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() +})