-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test * define asymmetric matchers * more * correction * trying to fix flow * flow fix
- Loading branch information
1 parent
727c377
commit 664cdbb
Showing
6 changed files
with
112 additions
and
8 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
packages/expect/src/__tests__/__snapshots__/extend.test.js.snap
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,5 +1,43 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`defines asymmetric matchers 1`] = ` | ||
"<dim>expect(</><red>received</><dim>).toEqual(</><green>expected</><dim>)</> | ||
Expected value to equal: | ||
<green>{\\"value\\": toBeDivisibleBy<2>}</> | ||
Received: | ||
<red>{\\"value\\": 3}</> | ||
Difference: | ||
<green>- Expected</> | ||
<red>+ Received</> | ||
<dim> Object {</> | ||
<green>- \\"value\\": toBeDivisibleBy<2>,</> | ||
<red>+ \\"value\\": 3,</> | ||
<dim> }</>" | ||
`; | ||
exports[`defines asymmetric matchers that can be prefixed by not 1`] = ` | ||
"<dim>expect(</><red>received</><dim>).toEqual(</><green>expected</><dim>)</> | ||
Expected value to equal: | ||
<green>{\\"value\\": not.toBeDivisibleBy<2>}</> | ||
Received: | ||
<red>{\\"value\\": 2}</> | ||
Difference: | ||
<green>- Expected</> | ||
<red>+ Received</> | ||
<dim> Object {</> | ||
<green>- \\"value\\": not.toBeDivisibleBy<2>,</> | ||
<red>+ \\"value\\": 2,</> | ||
<dim> }</>" | ||
`; | ||
exports[`is available globally 1`] = `"expected 15 to be divisible by 2"`; | ||
exports[`is ok if there is no message specified 1`] = `"<red>No message was specified for this matcher.</>"`; |
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