Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Oct 31, 2024
1 parent e4d3211 commit e635da2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/collection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ describe('cloneDeep', () => {
expect(value.valueOf()).toBe(result.valueOf())
})

it('Promise', () => {
const value = Promise.resolve(1)
const result = cloneDeep(value)
expect(value).toBe(result)
})

it('symbol', () => {
const value = Symbol('abc')
const result = cloneDeep(value)
Expand Down

0 comments on commit e635da2

Please sign in to comment.