6c625703ed
* Dynamic Routes: Change impl from $param to [param] * Update expected test snapshot * Update test to use new syntax * Update test file * Test more behavior * Update route sorter for new param syntax * Update dynamic routing tests * Update danging test file * Tweak test * Fix dev and update tests
14 lines
274 B
Text
14 lines
274 B
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`getSortedRoutes correctly sorts required slugs 1`] = `
|
|
Array [
|
|
"/",
|
|
"/apples/[ab]/[cd]/ef",
|
|
"/blog/[id]",
|
|
"/blog/[id]/comments/[cid]",
|
|
"/foo/[d]/bar/baz/[f]",
|
|
"/posts",
|
|
"/posts/[id]",
|
|
"/[root-slug]",
|
|
]
|
|
`;
|