Skip to content

Commit

Permalink
chore: Align snapshots in expect (#8976)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrottimark authored Sep 24, 2019
1 parent 3adb67b commit 630350a
Show file tree
Hide file tree
Showing 11 changed files with 3,398 additions and 3,382 deletions.
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 packages/expect/src/__tests__/__snapshots__/extend.test.js.snap
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.</>`;
Loading

0 comments on commit 630350a

Please sign in to comment.