Unverified Commit 73eb9ced authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Convert test to be inline (#13022)

parent fedc662f
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`getSortedRoutes correctly sorts required slugs 1`] = `
Array [
"/",
"/apples/[ab]/[cd]/ef",
"/blog/abc",
"/blog/abc/post",
"/blog/abc/[id]",
"/blog/[id]",
"/blog/[id]/comments/[cid]",
"/foo/[d]/bar/baz/[f]",
"/p/[...rest]",
"/p2/[id]",
"/p2/[id]/abc",
"/p2/[...rest]",
"/posts",
"/posts/[id]",
"/[root-slug]",
"/[...rest]",
]
`;
...@@ -36,7 +36,26 @@ describe('getSortedRoutes', () => { ...@@ -36,7 +36,26 @@ describe('getSortedRoutes', () => {
'/foo/[d]/bar/baz/[f]', '/foo/[d]/bar/baz/[f]',
'/apples/[ab]/[cd]/ef', '/apples/[ab]/[cd]/ef',
]) ])
).toMatchSnapshot() ).toMatchInlineSnapshot(`
Array [
"/",
"/apples/[ab]/[cd]/ef",
"/blog/abc",
"/blog/abc/post",
"/blog/abc/[id]",
"/blog/[id]",
"/blog/[id]/comments/[cid]",
"/foo/[d]/bar/baz/[f]",
"/p/[...rest]",
"/p2/[id]",
"/p2/[id]/abc",
"/p2/[...rest]",
"/posts",
"/posts/[id]",
"/[root-slug]",
"/[...rest]",
]
`)
}) })
it('catches mismatched param names', () => { it('catches mismatched param names', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment