Fix camel case (#220)

This commit is contained in:
Amaury Martiny
2018-09-28 15:17:30 +02:00
committed by Jaco Greeff
parent 5fa5906482
commit b73ca86982
2 changed files with 14 additions and 1 deletions
@@ -0,0 +1,13 @@
// Copyright 2017-2018 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import { stringCamelCase } from './index';
describe('stringCamelCase', () => {
it("works correctly", () => {
expect(
stringCamelCase('Snake_case')
).toBe('snakeCase');
});
});
+1 -1
View File
@@ -2,6 +2,6 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import * as stringCamelCase from 'camelcase';
import stringCamelCase from 'camelcase';
export default stringCamelCase;