import { toTitleCase } from '../src'; describe('toTitleCase', () => { test('GIVEN basic THEN returns expected', () => { const source = toTitleCase('something'); const expected = 'Something'; expect(source).toBe(expected); }); test('GIVEN unicode THEN returns expected', () => { const source = toTitleCase('🎈something'); const expected = '🎈Something'; expect(source).toBe(expected); }); test('GIVEN keyword THEN returns expected', () => { const source = toTitleCase('textchannel'); const expected = 'TextChannel'; expect(source).toBe(expected); }); });