diff --git a/test/fixtures/module/modules/basic/index.js b/test/fixtures/module/modules/basic/index.js index 7413bc80df..19c8cf976c 100644 --- a/test/fixtures/module/modules/basic/index.js +++ b/test/fixtures/module/modules/basic/index.js @@ -1,9 +1,6 @@ const path = require('path') -module.exports = function basicModule(options, resolve) { - // Add vendor (deprecated) - this.addVendor('lodash') - +module.exports = function basicModule(options) { // Add a plugin this.addPlugin(path.resolve(__dirname, 'reverse.js')) @@ -30,6 +27,4 @@ module.exports = function basicModule(options, resolve) { // Require same module twice this.requireModule('~/modules/empty/index.js') this.requireModule('~/modules/empty/index.js') - - resolve() } diff --git a/test/fixtures/module/modules/hooks/index.js b/test/fixtures/module/modules/hooks/index.js index 5205db1861..6a94b51671 100644 --- a/test/fixtures/module/modules/hooks/index.js +++ b/test/fixtures/module/modules/hooks/index.js @@ -16,8 +16,7 @@ module.exports = function () { this.nuxt.__builder_hook = builder && ctr++ }) - // Note: Plugin is deprecated. Please use new hooks system. - this.nuxt.plugin('built', (builder) => { + this.nuxt.hook('build:done', (builder) => { this.nuxt.__builder_plugin = builder && ctr++ })