-
-
Notifications
You must be signed in to change notification settings - Fork 856
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d005fab
commit 67565dd
Showing
20 changed files
with
933 additions
and
54 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`curry - es5 should check arguments 1`] = `"[Immer] minified error nr: 6"`; | ||
|
||
exports[`curry - es5 should check arguments 2`] = `"[Immer] minified error nr: 6"`; | ||
|
||
exports[`curry - es5 should check arguments 3`] = `"[Immer] minified error nr: 6"`; | ||
|
||
exports[`curry - es5 should check arguments 4`] = `"[Immer] minified error nr: 7"`; | ||
|
||
exports[`curry - proxy should check arguments 1`] = `"[Immer] minified error nr: 6"`; | ||
|
||
exports[`curry - proxy should check arguments 2`] = `"[Immer] minified error nr: 6"`; | ||
|
||
exports[`curry - proxy should check arguments 3`] = `"[Immer] minified error nr: 6"`; | ||
|
||
exports[`curry - proxy should check arguments 4`] = `"[Immer] minified error nr: 7"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`auto freeze - es5 will freeze maps 1`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - es5 will freeze maps 2`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - es5 will freeze maps 3`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - es5 will freeze sets 1`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - es5 will freeze sets 2`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - es5 will freeze sets 3`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - proxy will freeze maps 1`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - proxy will freeze maps 2`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - proxy will freeze maps 3`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - proxy will freeze sets 1`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - proxy will freeze sets 2`] = `"[Immer] minified error nr: 2"`; | ||
|
||
exports[`auto freeze - proxy will freeze sets 3`] = `"[Immer] minified error nr: 2"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`manual - es5 cannot modify after finish 1`] = `"[Immer] minified error nr: 3 {\\"a\\":2}"`; | ||
|
||
exports[`manual - es5 should check arguments 1`] = `"[Immer] minified error nr: 8"`; | ||
|
||
exports[`manual - es5 should check arguments 2`] = `"[Immer] minified error nr: 8"`; | ||
|
||
exports[`manual - es5 should check arguments 3`] = `"Cannot read property 'M' of undefined"`; | ||
|
||
exports[`manual - es5 should not finish twice 1`] = `"Cannot read property 'length' of null"`; | ||
|
||
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`] = `"[Immer] minified error nr: 8"`; | ||
|
||
exports[`manual - proxy should check arguments 2`] = `"[Immer] minified error nr: 8"`; | ||
|
||
exports[`manual - proxy should check arguments 3`] = `"Cannot read property 'M' of undefined"`; | ||
|
||
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", | ||
], | ||
}, | ||
], | ||
], | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`applyPatches throws when \`op\` is not "add", "replace", nor "remove" 1`] = `"[Immer] minified error nr: 17 copy"`; | ||
|
||
exports[`applyPatches throws when \`path\` cannot be resolved 1`] = `"[Immer] minified error nr: 15 a/b"`; | ||
|
||
exports[`applyPatches throws when \`path\` cannot be resolved 2`] = `"[Immer] minified error nr: 15 a/b/c"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Producers can update Maps 4`] = `"[Immer] minified error nr: 2"`; |
Oops, something went wrong.