forked from tjjfvi/subshape
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
43 additions
and
107 deletions.
There are no files selected for viewing
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
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
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
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
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
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 |
---|---|---|
@@ -1,66 +1,24 @@ | ||
export const snapshot = {}; | ||
|
||
snapshot[`\$.result( | ||
\$.str, | ||
\$.instance( | ||
[class StrErr extends Error], | ||
\$.tuple(\$.str), | ||
[Function (anonymous)] | ||
) | ||
) "ok" 1`] = ` | ||
snapshot[`\$.result(\$.str, \$.instance([Class: StrErr], \$.tuple(\$.str), [Function (anonymous)])) "ok" 1`] = ` | ||
00 | ||
08 | ||
6f | ||
6b | ||
`; | ||
|
||
snapshot[`\$.result( | ||
\$.str, | ||
\$.instance( | ||
[class StrErr extends Error], | ||
\$.tuple(\$.str), | ||
[Function (anonymous)] | ||
) | ||
) { [StrErr: err] str: "err", message: "StrErr: err" } 1`] = ` | ||
snapshot[`\$.result(\$.str, \$.instance([Class: StrErr], \$.tuple(\$.str), [Function (anonymous)])) StrErr: err 1`] = ` | ||
01 | ||
0c | ||
65 | ||
72 | ||
72 | ||
`; | ||
|
||
snapshot[`\$.result( | ||
\$.str, | ||
\$.instance( | ||
[class StrErr extends Error], | ||
\$.tuple(\$.str), | ||
[Function (anonymous)] | ||
) | ||
) invalid null 1`] = `ShapeAssertError: typeof value !== "string"`; | ||
snapshot[`\$.result(\$.str, \$.instance([Class: StrErr], \$.tuple(\$.str), [Function (anonymous)])) invalid null 1`] = `ShapeAssertError: typeof value !== "string"`; | ||
|
||
snapshot[`\$.result( | ||
\$.str, | ||
\$.instance( | ||
[class StrErr extends Error], | ||
\$.tuple(\$.str), | ||
[Function (anonymous)] | ||
) | ||
) invalid undefined 1`] = `ShapeAssertError: typeof value !== "string"`; | ||
snapshot[`\$.result(\$.str, \$.instance([Class: StrErr], \$.tuple(\$.str), [Function (anonymous)])) invalid undefined 1`] = `ShapeAssertError: typeof value !== "string"`; | ||
|
||
snapshot[`\$.result( | ||
\$.str, | ||
\$.instance( | ||
[class StrErr extends Error], | ||
\$.tuple(\$.str), | ||
[Function (anonymous)] | ||
) | ||
) invalid [Error: foo] 1`] = `ShapeAssertError: !(value instanceof StrErr)`; | ||
snapshot[`\$.result(\$.str, \$.instance([Class: StrErr], \$.tuple(\$.str), [Function (anonymous)])) invalid Error: foo 1`] = `ShapeAssertError: !(value instanceof StrErr)`; | ||
|
||
snapshot[`\$.result( | ||
\$.str, | ||
\$.instance( | ||
[class StrErr extends Error], | ||
\$.tuple(\$.str), | ||
[Function (anonymous)] | ||
) | ||
) invalid { [StrErr: null] str: null, message: "StrErr: null" } 1`] = `ShapeAssertError: typeof value#arguments[0] !== "string"`; | ||
snapshot[`\$.result(\$.str, \$.instance([Class: StrErr], \$.tuple(\$.str), [Function (anonymous)])) invalid StrErr: null 1`] = `ShapeAssertError: typeof value#arguments[0] !== "string"`; |
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