test: remove warnings

This commit is contained in:
Clark Du 2018-03-15 16:24:29 +08:00
parent 3957bf63bc
commit f9ab3c4c7c
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
2 changed files with 2 additions and 8 deletions

View File

@ -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()
} }

View File

@ -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++
}) })