Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Align snapshots in expect #8976

Merged
merged 1 commit into from
Sep 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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