Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 3f9a94e point at it.

chore: let's test before publishMichel Weststratebefore adoption3f9a94e

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

Merge pull request #1028 from immerjs/immer-10Michel Weststratebefore adoption2ef9a42

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

chore: let's test before publishMichel Weststratebefore adoption3f9a94e

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})