mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
test: remove warnings
This commit is contained in:
parent
3957bf63bc
commit
f9ab3c4c7c
7
test/fixtures/module/modules/basic/index.js
vendored
7
test/fixtures/module/modules/basic/index.js
vendored
@ -1,9 +1,6 @@
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
module.exports = function basicModule(options, resolve) {
|
module.exports = function basicModule(options) {
|
||||||
// Add vendor (deprecated)
|
|
||||||
this.addVendor('lodash')
|
|
||||||
|
|
||||||
// Add a plugin
|
// Add a plugin
|
||||||
this.addPlugin(path.resolve(__dirname, 'reverse.js'))
|
this.addPlugin(path.resolve(__dirname, 'reverse.js'))
|
||||||
|
|
||||||
@ -30,6 +27,4 @@ module.exports = function basicModule(options, resolve) {
|
|||||||
// Require same module twice
|
// Require same module twice
|
||||||
this.requireModule('~/modules/empty/index.js')
|
this.requireModule('~/modules/empty/index.js')
|
||||||
this.requireModule('~/modules/empty/index.js')
|
this.requireModule('~/modules/empty/index.js')
|
||||||
|
|
||||||
resolve()
|
|
||||||
}
|
}
|
||||||
|
3
test/fixtures/module/modules/hooks/index.js
vendored
3
test/fixtures/module/modules/hooks/index.js
vendored
@ -16,8 +16,7 @@ module.exports = function () {
|
|||||||
this.nuxt.__builder_hook = builder && ctr++
|
this.nuxt.__builder_hook = builder && ctr++
|
||||||
})
|
})
|
||||||
|
|
||||||
// Note: Plugin is deprecated. Please use new hooks system.
|
this.nuxt.hook('build:done', (builder) => {
|
||||||
this.nuxt.plugin('built', (builder) => {
|
|
||||||
this.nuxt.__builder_plugin = builder && ctr++
|
this.nuxt.__builder_plugin = builder && ctr++
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user