Skip to content

Commit

Permalink
fix(reporter): hooks status alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 17, 2022
1 parent 6571f1e commit 713c456
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -30,7 +30,7 @@ function formatFilepath(path: string) {
function renderHookState(task: Task, hookName: keyof SuiteHooks, level = 0) {
const state = task.result?.hooks?.[hookName]
if (state && state === 'run')
return `${' '.repeat(level)}${getHookStateSymbol(task, hookName)} ${c.dim(`[ ${hookName} ]`)}`
return `${' '.repeat(level)} ${getHookStateSymbol(task, hookName)} ${c.dim(`[ ${hookName} ]`)}`

return ''
}
Expand Down

0 comments on commit 713c456

Please sign in to comment.