fix: remove consola.debug for hooks (#5318)

This commit is contained in:
Thomas Reichling 2019-03-21 20:52:17 +01:00 committed by Pooya Parsa
parent 7100a2c6bc
commit 9ff01f9b20
2 changed files with 1 additions and 2 deletions

View File

@ -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) {

View File

@ -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')
})