Skip to content
Myr

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 file

Take 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 back
1"use strict"

chore: fix build / test issueMichel Weststratebefore adoption8aac6ca

line 2why, one step back
2import {isDraftable} from "../src/immer"

chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab

lines 3–4why, one step back
3
4test("non-plain object with undefined constructor doesn't error", () => {

chore: fix build / test issueMichel Weststratebefore adoption8aac6ca

lines 5–6why, one step back
5 const obj = Object.create(Object.create(null))
6 expect(isDraftable(obj)).toBe(false)

chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab

line 7why, one step back
7})