null.js
This file
Path
__tests__/null.js
11 lines · 269 bytes · JavaScript
Last changed by
feat: convert Immer to TypeScriptMichel Weststratebefore adoption52c9914
History of this fileTake it
feat: convert Immer to TypeScriptMichel Weststratebefore adoption52c9914
lines 1–11why, one step back1"use strict"2import produce from "../src/index"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})