Skip to content
Myr

test: rename and move a test

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

authored by aleclarson · committed by Alec Larson · parent ee49da3 · Browse files · 1 file+9 added−8 removed
This commit

State

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

Diff stats

1 file+9 added−8 removed

  • tests:+9 added−8 removed

1 file+9 added−8 removed

modified:__tests__/base.js+9 added-8 removed
200 unmodified lines
201 1202 ])203 })204205 // Reported here: https://github.com/mweststrate/immer/issues/116206 it("should support changing arrays - 3", () => {207 const nextState = produce([1, 2, 3], s => {208 s.pop()209 s.push(100)210 })211 expect(nextState).toEqual([1, 2, 100])212 })213214 it("can delete array items", () => {215 const nextState = produce(baseState, s => {216 s.anArray.length = 3217 })
753 unmodified lines
971 })972 }).toThrow(/An immer producer returned a new value/)973 })974966 it("should fix #116", () => {967 const nextState = produce([1, 2, 3], s => {968 s.pop()969 s.push(100)970 })971 expect(nextState).toEqual([1, 2, 100])972 })973975 it("should fix #117", () => {976 const reducer = (state, action) =>977 produce(state, draft => {978 switch (action.type) {
327 unmodified lines