mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
Fix tests
This commit is contained in:
parent
457c23d1dd
commit
6e2fb4642e
9
TODO.md
9
TODO.md
@ -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)
|
||||
|
2
test/fixtures/basic/nuxt.config.js
vendored
2
test/fixtures/basic/nuxt.config.js
vendored
@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
generate: {
|
||||
routeParams: {
|
||||
'/users/:id': [
|
||||
'/users/:id?': [
|
||||
{ id: 1 },
|
||||
{ id: 2 },
|
||||
{ id: 3 }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user