Skip to content

Commit

Permalink
test: Improve coverage (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavoguichard committed Oct 10, 2023
1 parent bf9345d commit 46c6af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/object-keys/deep-transform-keys.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { deepTransformKeys } from './deep-transform-keys.js'
describe('deepTransformKeys', () => {
test('should deeply transform the keys of an object', () => {
const expected = {
SOME: { 'DEEP-NESTED': { VALUE: true } },
SOME: [{ 'DEEP-NESTED': { VALUE: true } }],
'OTHER-VALUE': true,
}
const result = deepTransformKeys(
{
some: { 'deep-nested': { value: true } },
some: [{ 'deep-nested': { value: true } }],
'other-value': true,
},
(key) => key.toUpperCase(),
Expand Down

0 comments on commit 46c6af8

Please sign in to comment.