mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: remove consola.debug for hooks (#5318)
This commit is contained in:
parent
7100a2c6bc
commit
9ff01f9b20
@ -30,7 +30,7 @@ export default class Hookable {
|
||||
if (!this._hooks[name]) {
|
||||
return
|
||||
}
|
||||
consola.debug(`Call ${name} hooks (${this._hooks[name].length})`)
|
||||
|
||||
try {
|
||||
await sequence(this._hooks[name], fn => fn(...args))
|
||||
} catch (err) {
|
||||
|
@ -64,7 +64,6 @@ describe('core: hookable', () => {
|
||||
|
||||
await hook.callHook('test:hook')
|
||||
|
||||
expect(consola.debug).toBeCalledWith('Call test:hook hooks (1)')
|
||||
expect(consola.log).toBeCalledWith('test:hook called')
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user