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 07f5cc9 point at it.
chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
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(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
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})