null-base.js
This file
Path
__tests__/null-base.js
11 lines · 269 bytes · JavaScript
Last changed by
style: use tabsuse-tabsbefore adoptiona9c0fd0
History of this fileTake it
The walk stopped after 200 commits: lines older than 512256b point at it.
improve Draft<T> in TypeScriptAlec Larsonbefore adoption512256b
line 1why, one step back1"use strict"chore: update import paths in testsaleclarsonbefore adoptioncdc09b1
line 2why, one step back2import produce from "../src/index"improve Draft<T> in TypeScriptAlec Larsonbefore adoption512256b
lines 3–4why, one step back34describe("null functionality", () => {style: use tabsuse-tabsbefore adoptiona9c0fd0
line 5why, one step back5 const baseState = nullimprove Draft<T> in TypeScriptAlec Larsonbefore adoption512256b
line 6why, one step back6style: use tabsuse-tabsbefore adoptiona9c0fd0
lines 7–10why, one step back7 it("should return the original without modifications", () => {8 const nextState = produce(baseState, () => {})9 expect(nextState).toBe(baseState)10 })improve Draft<T> in TypeScriptAlec Larsonbefore adoption512256b
line 11why, one step back11})