Skip to content

Commit 7aa0863

Browse files
author
Sébastien Chopin
committed
test: Fix test for hooks
1 parent daaa5bd commit 7aa0863

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • test/fixtures/module/modules/hooks

test/fixtures/module/modules/hooks/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = function () {
22
let ctr = 1
33

44
// Add hook for module
5-
this.plugin('modules:done', (moduleContainer) => {
5+
this.nuxt.hook('modules:done', (moduleContainer) => {
66
this.nuxt.__module_hook = moduleContainer && ctr++
77
})
88

@@ -12,7 +12,7 @@ module.exports = function () {
1212
})
1313

1414
// Add hook for build
15-
this.nuxt.plugin('build:done', (builder) => {
15+
this.nuxt.hook('build:done', (builder) => {
1616
this.nuxt.__builder_hook = builder && ctr++
1717
})
1818
}

0 commit comments

Comments
 (0)