This repository has been archived on 2026-10-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles-archive/.atom/packages/atom-material-ui/spec/helper/to-camel-case-spec.js
T
2020-09-07 14:15:44 -07: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');
});
});