null.js
This file
Path
__tests__/null.js
11 lines · 271 bytes · JavaScript
Last changed by
Merge pull request #1028 from immerjs/immer-10Michel Weststratebefore adoption2ef9a42
History of this fileTake it
The walk stopped after 200 commits: lines older than d91a659 point at it.
fix: incorrect patches for `delete` on arrays. Fixes #879Michel Weststratebefore adoptiond91a659
line 1why, one step back1"use strict"Merge pull request #1028 from immerjs/immer-10Michel Weststratebefore adoption2ef9a42
line 2why, one step back2import {produce} from "../src/immer"fix: incorrect patches for `delete` on arrays. Fixes #879Michel Weststratebefore adoptiond91a659
lines 3–11why, one step back34describe("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})