@technobuddha/library
Version:
A large library of useful functions
20 lines (16 loc) • 636 B
text/typescript
import { camelCase } from './camel-case.ts';
describe('camelCase', () => {
test('should sentences', () => {
expect(camelCase('now is the time for all good men to come to the aid of their country')).toBe(
'nowIsTheTimeForAllGoodMenToComeToTheAidOfTheirCountry',
);
});
test('should change remaining case', () => {
expect(camelCase('now IS the time for ALL good men to come to the AID of their country')).toBe(
'nowIsTheTimeForAllGoodMenToComeToTheAidOfTheirCountry',
);
});
test('stuff TODO', () => {
expect(camelCase('thisIS the TIME forALLGood')).toBe('thisIsTheTimeForAllGood');
});
});