Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than ba24aab point at it.

Merge pull request #1028 from immerjs/immer-10Michel Weststratebefore adoption2ef9a42

line 1why, one step back
1import {produce, produceWithPatches, applyPatches} from "../src/immer"

chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab

lines 2–4why, one step back
2
3test("error when using Maps", () => {4 expect(() => {

chore: Merge branch 'unional-prettier'Michel Weststratebefore adoption37eaf8f

line 5why, one step back
5 produce(new Map(), function () {})

chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab

lines 6–12why, one step back
6 }).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 back
13 function () {},
14 function () {}

chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab

lines 15–20why, one step back
15 )
16 }).toThrowErrorMatchingSnapshot()17})1819test("error when using patches - 2", () => {20 expect(() => {

chore: Merge branch 'unional-prettier'Michel Weststratebefore adoption37eaf8f

line 21why, one step back
21 produceWithPatches({}, function () {})

chore: Fix typo (#954)Marc Barbeaubefore adoptionba24aab

lines 22–29why, one step back
22 }).toThrowErrorMatchingSnapshot()
23})2425test("error when using patches - 3", () => {26 expect(() => {27 applyPatches({}, [])28 }).toThrowErrorMatchingSnapshot()29})