We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef1ec3a commit 62a2291Copy full SHA for 62a2291
packages/utils/testing/src/plugin.js
@@ -20,6 +20,11 @@ class Plugins {
20
}
21
22
runActionsForEvent(name, options, callback) {
23
+ if (typeof options === 'function') {
24
+ callback = options;
25
+ options = {};
26
+ }
27
+
28
const listeners = this.plugin.getListeners(name);
29
if (listeners) {
30
listeners.forEach(fn => fn.spy(options, callback));
0 commit comments