Skip to content

Commit

Permalink
Merge 2570467 into ba34aca
Browse files Browse the repository at this point in the history
  • Loading branch information
ito-p committed May 29, 2019
2 parents ba34aca + 2570467 commit 8cf3a2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -8,7 +8,7 @@ var changeKeys = function changeKeys(transformer, obj) {
if (Array.isArray(obj)) {
return obj.map(function keysMap(key) {
if (typeof key === 'string') {
return transformer(key);
return key;
}

return changeKeys(transformer, key);
Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Expand Up @@ -45,7 +45,7 @@ describe('change-case-object', function () {
it('camelCase (Array of string)', function () {
var initialArrStr = ['is_active', 'is_blocked'];

var fixtureArrStr = ['isActive', 'isBlocked'];
var fixtureArrStr = ['is_active', 'is_blocked'];

expect(changeCaseObject.camelCase(initialArrStr)).to.deep.equal(fixtureArrStr);
});
Expand Down Expand Up @@ -142,7 +142,7 @@ describe('change-case-object', function () {
it('paramCase (Array of string)', function () {
var initialArrStr = ['is_active', 'is_blocked'];

var fixtureArrStr = ['is-active', 'is-blocked'];
var fixtureArrStr = ['is_active', 'is_blocked'];

expect(changeCaseObject.paramCase(initialArrStr)).to.deep.equal(fixtureArrStr);
});
Expand Down Expand Up @@ -239,7 +239,7 @@ describe('change-case-object', function () {
it('snakeCase (Array of string)', function () {
var initialArrStr = ['isActive', 'isBlocked'];

var fixtureArrStr = ['is_active', 'is_blocked'];
var fixtureArrStr = ['isActive', 'isBlocked'];

expect(changeCaseObject.snakeCase(initialArrStr)).to.deep.equal(fixtureArrStr);
});
Expand Down

0 comments on commit 8cf3a2f

Please sign in to comment.