Skip to content
Myr

test: tiny improvement

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 59788f2 · Browse files · 1 file+1 added−2 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+1 added−2 removed

  • tests:+1 added−2 removed

1 file+1 added−2 removed

modified:__tests__/base.js+1 added-2 removed
404 unmodified lines
405 it("should reflect all changes made in the draft immediately", () => {406 produce(baseState, draft => {407 draft.anArray[0] = 5408 draft.anArray.unshift("test")409 // sliced here; jest will also compare non-enumerable keys, which would include the immer Symbols410 expect(draft.anArray.slice()).toMatchObject([409 expect(enumerableOnly(draft.anArray)).toEqual([410 "test",411 5,412 2,413 {c: 3},
891 unmodified lines