Skip to content

Commit

Permalink
fix: add missing on() method
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitmarsh committed May 19, 2022
1 parent 71e870d commit 7672485
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ function createPromisable (wrapped) {
send: function (cb) {
args.push(cb)
this._returned = wrapped.apply(self, args)
},
on: function (event, cb) {
cb()
}
}
}
Expand Down

0 comments on commit 7672485

Please sign in to comment.