Fix tests

This commit is contained in:
Sébastien Chopin 2017-02-22 18:20:17 +00:00
parent 457c23d1dd
commit 6e2fb4642e
3 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,11 @@
Tasks for `0.9.10`:
- [x] `build.publicPath` #25
- [ ] Use [name].[chunkhash].js for generated js (production) #218
- [ ] Add expired headers (production)
- [x] Use [name].[chunkhash].js for generated js (production) #218
- [x] Add expired headers (production)
- [x] Activate layout only on afterEach #214
- [ ] Custom layout in layouts/error.vue #172
- [x] Custom layout in layouts/error.vue #172
- [ ] Test + Coverage performance, cache, filenames
- [ ] Manual tests on router.base & publicPath
- [ ] Add Doc for build.filenames, performance.gzip and performance.prefetch
-> Not possible to have custom layout for a page, it should do the condition inside the layout itself (because of the middleware strategy)

View File

@ -1,7 +1,7 @@
module.exports = {
generate: {
routeParams: {
'/users/:id': [
'/users/:id?': [
{ id: 1 },
{ id: 2 },
{ id: 3 }

View File

@ -62,7 +62,7 @@ test('/test/about-bis (added with extendRoutes)', async t => {
test('Check stats.json generated by build.analyze', t => {
const stats = require(resolve(__dirname, 'fixtures/with-config/.nuxt/dist/stats.json'))
t.is(stats.assets.length, 11)
t.is(stats.assets.length, 12)
})
// Close server and ask nuxt to stop listening to file changes