Skip to content
Myr

test: add missing edge case

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 733e16f · Browse files · 1 file+8 added−0 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+8 added−0 removed

  • tests:+8 added−0 removed

1 file+8 added−0 removed

modified:__tests__/base.js+8 added
409 unmodified lines
410 const test = proxy.coffee411 }).toThrowError(/revoked/)412 })413414 it("can access a child draft that was created before the draft was modified", () => {415 produce({a: {}}, s => {416 const before = s.a417 s.b = 1418 expect(s.a).toBe(before)419 })420 })421422 it("should reflect all changes made in the draft immediately", () => {423 produce(baseState, draft => {424 draft.anArray[0] = 5425 draft.anArray.unshift("test")
876 unmodified lines