Skip to content

Commit

Permalink
Add a test for Object.create(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr authored Dec 6, 2023
1 parent 8166351 commit 1624ae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/utils/isPlainObject.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ describe('isPlainObject', () => {
expect(isPlainObject(null)).toBe(false)
expect(isPlainObject(undefined)).toBe(false)
expect(isPlainObject({ x: 1, y: 2 })).toBe(true)
expect(isPlainObject(Object.create(null))).toBe(true)
})
})

0 comments on commit 1624ae7

Please sign in to comment.