From 3943085d6d84facfda31c7e21d60056d109d7fe2 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 29 Jan 2022 16:02:28 +0000 Subject: [PATCH] Add StringTools test Signed-off-by: Ethan Lane --- tests/helpers/StringTools.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/helpers/StringTools.test.ts diff --git a/tests/helpers/StringTools.test.ts b/tests/helpers/StringTools.test.ts new file mode 100644 index 0000000..ae6134b --- /dev/null +++ b/tests/helpers/StringTools.test.ts @@ -0,0 +1,11 @@ +import StringTools from "../../src/helpers/StringTools"; + +describe('Capitalise', () => { + test('Expect sentence to be captilised', () => { + const inputString = 'the big brown fox jumps over the lazy dog'; + + const result = StringTools.Capitalise(inputString); + + expect(result).toBe('The Big Brown Fox Jumps Over The Lazy Dog'); + }); +}); \ No newline at end of file