Skip to content

Commit

Permalink
fix: add .raw to mocked functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 7, 2021
1 parent 1f32983 commit 987dadc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/consola.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class Consola {

for (const type in this._types) {
this[type] = this._mockFn(type, this._types[type]) || this[type]
this[type].raw = this[type]
}
}

Expand Down

0 comments on commit 987dadc

Please sign in to comment.