From 7aa0863cb7d74abbd4ba2b744696fda495659091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Mon, 30 Oct 2017 23:17:46 +0100 Subject: [PATCH] test: Fix test for hooks --- test/fixtures/module/modules/hooks/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixtures/module/modules/hooks/index.js b/test/fixtures/module/modules/hooks/index.js index 2c0e2949d0..5349106c6e 100644 --- a/test/fixtures/module/modules/hooks/index.js +++ b/test/fixtures/module/modules/hooks/index.js @@ -2,7 +2,7 @@ module.exports = function () { let ctr = 1 // Add hook for module - this.plugin('modules:done', (moduleContainer) => { + this.nuxt.hook('modules:done', (moduleContainer) => { this.nuxt.__module_hook = moduleContainer && ctr++ }) @@ -12,7 +12,7 @@ module.exports = function () { }) // Add hook for build - this.nuxt.plugin('build:done', (builder) => { + this.nuxt.hook('build:done', (builder) => { this.nuxt.__builder_hook = builder && ctr++ }) }