Skip to content
Myr

null-base.js

This file

Path

__tests__/null-base.js

11 lines · 290 bytes · JavaScript

Last changed by

Merge pull request #152 from MaxBoltik/null-baseMichel Weststratebefore adoption89ee9de

History of this file

Take it

Merge pull request #152 from MaxBoltik/null-baseMichel Weststratebefore adoption89ee9de

lines 1–11why, one step back
1"use strict"
2import produce from "../src/immer"34describe("null functionality", () => {5 const baseState = null67 it("should return the original without modifications", () => {8 const nextState = produce(baseState, () => {})9 expect(nextState).toBe(baseState)10 })11})