Add StringTools test

Signed-off-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
Ethan Lane 2022-01-29 16:02:28 +00:00
parent d669b7f5ae
commit 3943085d6d
Signed by: Vylpes
GPG key ID: EED233CC06D12504

View file

@ -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');
});
});