Skip to content

Commit f9d86b6

Browse files
committedApr 13, 2023
fix(mockTypes): mock on options.typs
1 parent 00abbe7 commit f9d86b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/consola.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class Consola {
224224

225225
for (const type in this.options.types) {
226226
(this as any)[type] =
227-
_mockFn(type as LogType, (this as any)._types[type]) ||
227+
_mockFn(type as LogType, (this as any).options.types[type]) ||
228228
(this as any)[type];
229229
(this as any)[type].raw = (this as any)[type];
230230
}

0 commit comments

Comments
 (0)
Please sign in to comment.