Skip to content

Commit

Permalink
add set test for 100% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 26, 2025
1 parent d90adad commit 5bab7bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/object/set.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ describe('set', () => {
cards: { '1234value': 2 },
})
})

test('set ignores undefined values', () => {
expect(_.set({}, 'foo', undefined)).toEqual({})
})
})

0 comments on commit 5bab7bb

Please sign in to comment.