plugins.js
This file
Path
__tests__/plugins.js
29 lines · 624 bytes · JavaScript
Last changed by
chore: Merge branch 'unional-prettier'Michel Weststratebefore adoption37eaf8f
History of this fileTake it
The walk stopped after 200 commits: lines older than 607b994 point at it.
Merge pull request #1028 from immerjs/immer-10Michel Weststratebefore adoption2ef9a42
line 1why, one step back1import {produce, produceWithPatches, applyPatches} from "../src/immer"chore: added unit test for #897Michel Weststratebefore adoption607b994
lines 2–4why, one step back23test("error when using Maps", () => {4 expect(() => {chore: Merge branch 'unional-prettier'Michel Weststratebefore adoption37eaf8f
line 5why, one step back5 produce(new Map(), function () {})chore: added unit test for #897Michel Weststratebefore adoption607b994
lines 6–12why, one step back6 }).toThrowErrorMatchingSnapshot()7})89test("error when using patches - 1", () => {10 expect(() => {11 produce(12 {},chore: Merge branch 'unional-prettier'Michel Weststratebefore adoption37eaf8f
lines 13–14why, one step back13 function () {},14 function () {}chore: added unit test for #897Michel Weststratebefore adoption607b994
lines 15–20why, one step back15 )16 }).toThrowErrorMatchingSnapshot()17})1819test("error when using patches - 2", () => {20 expect(() => {chore: Merge branch 'unional-prettier'Michel Weststratebefore adoption37eaf8f
line 21why, one step back21 produceWithPatches({}, function () {})chore: added unit test for #897Michel Weststratebefore adoption607b994
lines 22–29why, one step back22 }).toThrowErrorMatchingSnapshot()23})2425test("error when using patches - 3", () => {26 expect(() => {27 applyPatches({}, [])28 }).toThrowErrorMatchingSnapshot()29})