mirror of
https://github.com/zebrajr/HomeLab.git
synced 2025-12-06 00:20:22 +01:00
18 lines
503 B
JavaScript
18 lines
503 B
JavaScript
'use babel';
|
|
|
|
import toCamelCase from '../../lib/helper/to-camel-case';
|
|
|
|
describe('camelCaseHelper', () => {
|
|
it('should convert spaces to camelCase', () => {
|
|
expect(toCamelCase('hello world')).toEqual('helloWorld');
|
|
});
|
|
|
|
it('should convert lisp-case to camelCase', () => {
|
|
expect(toCamelCase('hello-world')).toEqual('helloWorld');
|
|
});
|
|
|
|
it('should convert snake_case to camelCase', () => {
|
|
expect(toCamelCase('hello_world')).toEqual('helloWorld');
|
|
});
|
|
});
|