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 607b994 point at it.
chore: added unit test for #897Michel Weststratebefore adoption607b994
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"chore: added unit test for #897Michel Weststratebefore adoption607b994
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})