Skip to content
Myr

chore: add test for #462

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 788dc03 · Browse files · 1 file+18 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+18 added−0 removed

  • tests:+18 added−0 removed

1 file+18 added−0 removed

modified:__tests__/base.js+18 added
1403 unmodified lines
1404 expect(next2).toBe(a)1405 })14061407 autoFreeze &&1408 test.skip("issue #462 - frozen", () => {1409 var origin = {1410 a: {1411 value: "no"1412 },1413 b: {1414 value: "no"1415 }1416 }1417 var im = produce(origin, origin => {1418 origin.a.value = "im"1419 })1420 expect(() => (origin.b.value = "yes")).toThrow() // should throw!1421 // to prevent this...:1422 // expect(im.b.value).toBe('no');1423 })14241425 autoFreeze &&1426 test("issue #469, state not frozen", () => {1427 const project = produce(1428 {1429 id: 1,
531 unmodified lines