From 7672485326b847b3e5bdcfa04b57b06e870d1668 Mon Sep 17 00:00:00 2001 From: James Whitmarsh Date: Thu, 19 May 2022 20:34:20 +0100 Subject: [PATCH] fix: add missing on() method --- lib/mock.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/mock.js b/lib/mock.js index bf4fae0..235cbae 100644 --- a/lib/mock.js +++ b/lib/mock.js @@ -106,6 +106,9 @@ function createPromisable (wrapped) { send: function (cb) { args.push(cb) this._returned = wrapped.apply(self, args) + }, + on: function (event, cb) { + cb() } } }