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
123456789101112131415161718192021222324252627282930import {produce, produceWithPatches, applyPatches} from "../src/immer"
test("error when using Maps", () => { expect(() => { produce(new Map(), function () {}) }).toThrowErrorMatchingSnapshot()})
test("error when using patches - 1", () => { expect(() => { produce( {}, function () {}, function () {} ) }).toThrowErrorMatchingSnapshot()})
test("error when using patches - 2", () => { expect(() => { produceWithPatches({}, function () {}) }).toThrowErrorMatchingSnapshot()})
test("error when using patches - 3", () => { expect(() => { applyPatches({}, []) }).toThrowErrorMatchingSnapshot()})