test: Fix test for hooks

This commit is contained in:
Sébastien Chopin 2017-10-30 23:17:46 +01:00
parent daaa5bdd12
commit 7aa0863cb7

View File

@ -2,7 +2,7 @@ module.exports = function () {
let ctr = 1 let ctr = 1
// Add hook for module // Add hook for module
this.plugin('modules:done', (moduleContainer) => { this.nuxt.hook('modules:done', (moduleContainer) => {
this.nuxt.__module_hook = moduleContainer && ctr++ this.nuxt.__module_hook = moduleContainer && ctr++
}) })
@ -12,7 +12,7 @@ module.exports = function () {
}) })
// Add hook for build // Add hook for build
this.nuxt.plugin('build:done', (builder) => { this.nuxt.hook('build:done', (builder) => {
this.nuxt.__builder_hook = builder && ctr++ this.nuxt.__builder_hook = builder && ctr++
}) })
} }