HomeLab/dotfiles/.atom/packages/atom-material-ui/spec/helper/to-camel-case-spec.js
2021-08-12 23:57:35 +02:00

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