Skip to content
Myr

improved frozen test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Michel Weststrate · committed by Michel Weststrate · parent 6990c33 · Browse files · 2 files+49 added−41 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+49 added−41 removed

  • tests:+49 added−41 removed

2 files+49 added−41 removed

modified:__tests__/base.js+2 added-2 removed
142 unmodified lines
143 expect(nextState.anArray).not.toBe(baseState.anArray)144 expect(enumerableOnly(nextState.anArray)).toEqual([1, 2, 3, {c: 5}])145 })146147 it.only("should support sorting arrays - 2", () => {147 it.skip("should support sorting arrays - 2", () => {148 const nextState = immer([], s => {149 debugger150 s.unshift("x")151 // console.dir(s)
4 unmodified lines
156 })157 expect(nextState).toEqual(["x"])158 })159160 it.only("should support sorting arrays - 2", () => {160 it.skip("should support sorting arrays - 2", () => {161 const nextState = immer(baseState, s => {162 debugger163 s.anArray.unshift("x")164 s.anArray[3].c = 4
162 unmodified lines
modified:__tests__/frozen.js+47 added-39 removed