isDraftable.js
This file
Path
__tests__/isDraftable.js
7 lines · 218 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 07f5cc9 point at it.
chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 1–7why, one step back1"use strict"2import {isDraftable} from "../src/immer"34test("non-plain object with undefined constructor doesn't error", () => {5 const obj = Object.create(Object.create(null))6 expect(isDraftable(obj)).toBe(false)7})