-
-
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.
chore: Align snapshots in expect (#8976)
- Loading branch information
1 parent
3adb67b
commit 630350a
Showing
11 changed files
with
3,398 additions
and
3,382 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
packages/expect/src/__tests__/__snapshots__/assertionCounts.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,10 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`.hasAssertions() throws if expected is not undefined 1`] = ` | ||
"<dim>expect(</><red>received</><dim>)[.not].hasAssertions()</> | ||
<d>expect(</><r>received</><d>)[.not].hasAssertions()</> | ||
<bold>Matcher error</>: this matcher must not have an expected argument | ||
<b>Matcher error</>: this matcher must not have an expected argument | ||
Expected has type: number | ||
Expected has value: <green>2</>" | ||
Expected has value: <g>2</> | ||
`; |
62 changes: 31 additions & 31 deletions
62
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,55 +1,55 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`defines asymmetric unary matchers 1`] = ` | ||
"<dim>expect(</><red>received</><dim>).</>toEqual<dim>(</><green>expected</><dim>) // deep equality</> | ||
<d>expect(</><r>received</><d>).</>toEqual<d>(</><g>expected</><d>) // deep equality</> | ||
<green>- Expected</> | ||
<red>+ Received</> | ||
<g>- Expected</> | ||
<r>+ Received</> | ||
<dim> Object {</> | ||
<green>- \\"value\\": toBeDivisibleBy<2>,</> | ||
<red>+ \\"value\\": 3,</> | ||
<dim> }</>" | ||
<d> Object {</> | ||
<g>- "value": toBeDivisibleBy<2>,</> | ||
<r>+ "value": 3,</> | ||
<d> }</> | ||
`; | ||
exports[`defines asymmetric unary matchers that can be prefixed by not 1`] = ` | ||
"<dim>expect(</><red>received</><dim>).</>toEqual<dim>(</><green>expected</><dim>) // deep equality</> | ||
<d>expect(</><r>received</><d>).</>toEqual<d>(</><g>expected</><d>) // deep equality</> | ||
<green>- Expected</> | ||
<red>+ Received</> | ||
<g>- Expected</> | ||
<r>+ Received</> | ||
<dim> Object {</> | ||
<green>- \\"value\\": not.toBeDivisibleBy<2>,</> | ||
<red>+ \\"value\\": 2,</> | ||
<dim> }</>" | ||
<d> Object {</> | ||
<g>- "value": not.toBeDivisibleBy<2>,</> | ||
<r>+ "value": 2,</> | ||
<d> }</> | ||
`; | ||
exports[`defines asymmetric variadic matchers 1`] = ` | ||
"<dim>expect(</><red>received</><dim>).</>toEqual<dim>(</><green>expected</><dim>) // deep equality</> | ||
<d>expect(</><r>received</><d>).</>toEqual<d>(</><g>expected</><d>) // deep equality</> | ||
<green>- Expected</> | ||
<red>+ Received</> | ||
<g>- Expected</> | ||
<r>+ Received</> | ||
<dim> Object {</> | ||
<green>- \\"value\\": toBeWithinRange<4, 11>,</> | ||
<red>+ \\"value\\": 3,</> | ||
<dim> }</>" | ||
<d> Object {</> | ||
<g>- "value": toBeWithinRange<4, 11>,</> | ||
<r>+ "value": 3,</> | ||
<d> }</> | ||
`; | ||
exports[`defines asymmetric variadic matchers that can be prefixed by not 1`] = ` | ||
"<dim>expect(</><red>received</><dim>).</>toEqual<dim>(</><green>expected</><dim>) // deep equality</> | ||
<d>expect(</><r>received</><d>).</>toEqual<d>(</><g>expected</><d>) // deep equality</> | ||
<green>- Expected</> | ||
<red>+ Received</> | ||
<g>- Expected</> | ||
<r>+ Received</> | ||
<dim> Object {</> | ||
<green>- \\"value\\": not.toBeWithinRange<1, 3>,</> | ||
<red>+ \\"value\\": 2,</> | ||
<dim> }</>" | ||
<d> Object {</> | ||
<g>- "value": not.toBeWithinRange<1, 3>,</> | ||
<r>+ "value": 2,</> | ||
<d> }</> | ||
`; | ||
exports[`is available globally when matcher is unary 1`] = `"expected 15 to be divisible by 2"`; | ||
exports[`is available globally when matcher is unary 1`] = `expected 15 to be divisible by 2`; | ||
exports[`is available globally when matcher is variadic 1`] = `"expected 15 to be within range 1 - 3"`; | ||
exports[`is available globally when matcher is variadic 1`] = `expected 15 to be within range 1 - 3`; | ||
exports[`is ok if there is no message specified 1`] = `"<red>No message was specified for this matcher.</>"`; | ||
exports[`is ok if there is no message specified 1`] = `<r>No message was specified for this matcher.</>`; |
Oops, something went wrong.