mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
test: Fix test for hooks
This commit is contained in:
parent
daaa5bdd12
commit
7aa0863cb7
4
test/fixtures/module/modules/hooks/index.js
vendored
4
test/fixtures/module/modules/hooks/index.js
vendored
@ -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++
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user