Skip to content

Commit

Permalink
test(plugin): fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mohatt committed Feb 2, 2021
1 parent 09a32f9 commit 0d79651
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Link/__tests__/__snapshots__/Link.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Array [
exports[`<Link /> should log console error when called with invalid props 2`] = `
Array [
Array [
"Warning: Invalid route params supplied to \`Link\` component: Error generating a path for route '/blog/post/:post' with params '{}': Expected \\"post\\" to be a string",
"Warning: Invalid route params supplied to \`Link\` component: Error generating a path for route \\"/blog/post/:post\\" with params \\"{}\\": Expected \\"post\\" to be a string",
],
]
`;

exports[`<Link /> should log console error when called with invalid props 3`] = `
Array [
Array [
"Warning: Invalid route params supplied to \`Link\` component: Error generating a path for route '/blog/post/:post' with params '{\\"invalid\\":\\"whatever\\"}': Expected \\"post\\" to be a string",
"Warning: Invalid route params supplied to \`Link\` component: Error generating a path for route \\"/blog/post/:post\\" with params \\"{\\"invalid\\":\\"whatever\\"}\\": Expected \\"post\\" to be a string",
],
]
`;
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby/__tests__/__snapshots__/create-pages.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ exports[`createPages throws error on (bad-helper-invalid-pagination-limit) 1`] =

exports[`createPages throws error on (bad-helper-invalid-pagination-route) 1`] = `[Error: Invalid pagination object passed to createAdvancedPage() at "/path/to/helper.js": Unrecognized route "foo"]`;

exports[`createPages throws error on (bad-helper-invalid-route-params) 1`] = `[TypeError: Error generating a path for route '/about/:name' with params '{}': Expected "name" to be a string]`;
exports[`createPages throws error on (bad-helper-invalid-route-params) 1`] = `[TypeError: Error generating a path for route "/about/:name" with params "{}": Expected "name" to be a string]`;

exports[`createPages throws error on (bad-helper-js-error) 1`] = `[Error: some error]`;

Expand Down

0 comments on commit 0d79651

Please sign in to comment.