Skip to content
Myr

null.js

This file

Path

__tests__/null.js

11 lines · 269 bytes · JavaScript

Last changed by

Merge pull request #536 from immerjs/multi-bundleMichel Weststratebefore adoption0d87fc8

History of this file

Take it

feat: convert Immer to TypeScriptMichel Weststratebefore adoption52c9914

line 1why, one step back
1"use strict"

Merge pull request #536 from immerjs/multi-bundleMichel Weststratebefore adoption0d87fc8

line 2why, one step back
2import produce from "../src/immer"

feat: convert Immer to TypeScriptMichel Weststratebefore adoption52c9914

lines 3–11why, one step back
3
4describe("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})