Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHung committed Aug 23, 2022
1 parent 295c759 commit 819cec7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions __tests__/isDraftable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict"
import { isDraftable } from "../src/immer"

test("non-plain object with undefined constructor doesn't error", () => {
const obj = Object.create(Object.create(null))
expect(isDraftable(obj).toBe(true);
})

0 comments on commit 819cec7

Please sign in to comment.