From f9ab3c4c7cee1330a8fa3b52f1b2b9dc0aa38ad2 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 15 Mar 2018 16:24:29 +0800 Subject: [PATCH] test: remove warnings --- test/fixtures/module/modules/basic/index.js | 7 +------ test/fixtures/module/modules/hooks/index.js | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) 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++ })