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
123456789101112"use strict"import {produce} from "../src/immer"
describe("null functionality", () => { const baseState = null
it("should return the original without modifications", () => { const nextState = produce(baseState, () => {}) expect(nextState).toBe(baseState) })})