mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 19:37:18 +00:00
test: add catchall path to route generation test
This commit is contained in:
parent
010b539edb
commit
71c3595169
@ -38,6 +38,12 @@ exports[`util: route util: route create createRoutes should allow snake case rou
|
|||||||
"name": "subpage-param",
|
"name": "subpage-param",
|
||||||
"path": "/subpage/:param?",
|
"path": "/subpage/:param?",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"chunkName": "pages/parent/_",
|
||||||
|
"component": "/some/nuxt/app/pages/parent/_.vue",
|
||||||
|
"name": "parent-all",
|
||||||
|
"path": "/parent/*",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"chunkName": "pages/index",
|
"chunkName": "pages/index",
|
||||||
"component": "/some/nuxt/app/pages/index.vue",
|
"component": "/some/nuxt/app/pages/index.vue",
|
||||||
@ -162,6 +168,15 @@ exports[`util: route util: route create createRoutes should enforce trailing sla
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"chunkName": "pages/parent/_",
|
||||||
|
"component": "/some/nuxt/app/pages/parent/_.vue",
|
||||||
|
"name": "parent-all",
|
||||||
|
"path": "/parent/*",
|
||||||
|
"pathToRegexpOptions": {
|
||||||
|
"strict": true,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"chunkName": "pages/index",
|
"chunkName": "pages/index",
|
||||||
"component": "/some/nuxt/app/pages/index.vue",
|
"component": "/some/nuxt/app/pages/index.vue",
|
||||||
@ -239,6 +254,15 @@ exports[`util: route util: route create createRoutes should remove trailing slas
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"chunkName": "pages/parent/_",
|
||||||
|
"component": "/some/nuxt/app/pages/parent/_.vue",
|
||||||
|
"name": "parent-all",
|
||||||
|
"path": "/parent/*",
|
||||||
|
"pathToRegexpOptions": {
|
||||||
|
"strict": true,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"chunkName": "pages/index",
|
"chunkName": "pages/index",
|
||||||
"component": "/some/nuxt/app/pages/index.vue",
|
"component": "/some/nuxt/app/pages/index.vue",
|
||||||
|
@ -212,7 +212,8 @@ describe('util: route', () => {
|
|||||||
'pages/another_route/_id.vue',
|
'pages/another_route/_id.vue',
|
||||||
'pages/parent/index.vue',
|
'pages/parent/index.vue',
|
||||||
'pages/parent/child/index.vue',
|
'pages/parent/child/index.vue',
|
||||||
'pages/parent/child/test.vue'
|
'pages/parent/child/test.vue',
|
||||||
|
'pages/parent/_.vue'
|
||||||
]
|
]
|
||||||
const srcDir = '/some/nuxt/app'
|
const srcDir = '/some/nuxt/app'
|
||||||
const pagesDir = 'pages'
|
const pagesDir = 'pages'
|
||||||
|
Loading…
Reference in New Issue
Block a user