-
-
Notifications
You must be signed in to change notification settings - Fork 842
/
manual.js.snap
101 lines (87 loc) · 2.82 KB
/
manual.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`manual - es5 cannot modify after finish 1`] = `"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? {\\"a\\":2}"`;
exports[`manual - es5 should check arguments 1`] = `"First argument to \`createDraft\` must be a plain object, an array, or an immerable object"`;
exports[`manual - es5 should check arguments 2`] = `"First argument to \`createDraft\` must be a plain object, an array, or an immerable object"`;
exports[`manual - es5 should check arguments 3`] = `"First argument to \`finishDraft\` must be a draft returned by \`createDraft\`"`;
exports[`manual - es5 should not finish drafts from produce 1`] = `"First argument to \`finishDraft\` must be a draft returned by \`createDraft\`"`;
exports[`manual - es5 should not finish twice 1`] = `"The given draft is already finalized"`;
exports[`manual - es5 should support patches drafts 1`] = `
Array [
Array [
Array [
Object {
"op": "replace",
"path": Array [
"a",
],
"value": 2,
},
Object {
"op": "add",
"path": Array [
"b",
],
"value": 3,
},
],
Array [
Object {
"op": "replace",
"path": Array [
"a",
],
"value": 1,
},
Object {
"op": "remove",
"path": Array [
"b",
],
},
],
],
]
`;
exports[`manual - proxy cannot modify after finish 1`] = `"Cannot perform 'set' on a proxy that has been revoked"`;
exports[`manual - proxy should check arguments 1`] = `"First argument to \`createDraft\` must be a plain object, an array, or an immerable object"`;
exports[`manual - proxy should check arguments 2`] = `"First argument to \`createDraft\` must be a plain object, an array, or an immerable object"`;
exports[`manual - proxy should check arguments 3`] = `"First argument to \`finishDraft\` must be a draft returned by \`createDraft\`"`;
exports[`manual - proxy should not finish drafts from produce 1`] = `"First argument to \`finishDraft\` must be a draft returned by \`createDraft\`"`;
exports[`manual - proxy should not finish twice 1`] = `"Cannot perform 'get' on a proxy that has been revoked"`;
exports[`manual - proxy should support patches drafts 1`] = `
Array [
Array [
Array [
Object {
"op": "replace",
"path": Array [
"a",
],
"value": 2,
},
Object {
"op": "add",
"path": Array [
"b",
],
"value": 3,
},
],
Array [
Object {
"op": "replace",
"path": Array [
"a",
],
"value": 1,
},
Object {
"op": "remove",
"path": Array [
"b",
],
},
],
],
]
`;