diff --git a/packages/utils/testing/src/plugin.js b/packages/utils/testing/src/plugin.js index a7bbd0095..36e68cdee 100644 --- a/packages/utils/testing/src/plugin.js +++ b/packages/utils/testing/src/plugin.js @@ -20,6 +20,11 @@ class Plugins { } runActionsForEvent(name, options, callback) { + if (typeof options === 'function') { + callback = options; + options = {}; + } + const listeners = this.plugin.getListeners(name); if (listeners) { listeners.forEach(fn => fn.spy(options, callback));