isDraftable.js
This file
Path
__tests__/isDraftable.js
7 lines · 218 bytes · JavaScript
Last changed by
chore: fix build / test issueMichel Weststratebefore adoption8aac6ca
History of this fileTake it
The walk stopped after 200 commits: lines older than ba24aab point at it.
chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab
line 1why, one step back1"use strict"chore: fix build / test issueMichel Weststratebefore adoption8aac6ca
line 2why, one step back2import {isDraftable} from "../src/immer"chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab
lines 3–4why, one step back34test("non-plain object with undefined constructor doesn't error", () => {chore: fix build / test issueMichel Weststratebefore adoption8aac6ca
lines 5–6why, one step back5 const obj = Object.create(Object.create(null))6 expect(isDraftable(obj)).toBe(false)chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab
line 7why, one step back7})