plugins.js
This file
Path
__tests__/plugins.js
29 lines · 620 bytes · JavaScript
Last changed by
Merge pull request #1028 from immerjs/immer-10Michel Weststratebefore adoption2ef9a42
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()})