Skip to content

Commit

Permalink
test: Fix test for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Oct 30, 2017
1 parent daaa5bd commit 7aa0863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/module/modules/hooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++
})

Expand All @@ -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++
})
}

0 comments on commit 7aa0863

Please sign in to comment.