Skip to content
Myr

Updated changelog

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 0d24494 · Browse files · 3 files+29 added−14 removed
This commit

State

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

Diff stats

3 files+29 added−14 removed

  • tests:+14 added−0 removed
  • other:+15 added−14 removed

3 files+29 added−14 removed

modified:__tests__/base.js+14 added
209 unmodified lines
210 expect(baseState.aProp).toBe("hi")211 expect(nextState.aProp).toBe("hello")212 })213214 it("should revoke the proxy of the baseState after immer function is executed - 2", () => {215 let proxy216 const nextState = immer(baseState, s => {217 proxy = s.anObject218 })219 expect(nextState).toBe(baseState)220 expect(() => {221 proxy.test = "Hallo"222 }).toThrowError(/^Cannot perform.*on a proxy that has been revoked/)223 expect(() => {224 const test = proxy.test225 }).toThrowError(/^Cannot perform.*on a proxy that has been revoked/)226 })227228 afterEach(() => {229 expect(baseState).toBe(origBaseState)230 expect(baseState).toEqual(createBaseState())231 })
14 unmodified lines
added:changelog.md+14 added
modified:readme.md+1 added-14 removed