Archived
oh please work
This commit is contained in:
1 parent
e3c2d1b295
commit
18467e0fd4
142 files changed
+22252
No files matched your search
@@ -0,0 +1,17 @@
|
||||
'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');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user