Skip to content

Commit

Permalink
refactor(utils/testing): expose registerAPICall() on testbed plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-r4bbit authored and iurimatias committed Feb 26, 2020
1 parent 0ba8d86 commit ef1ec3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/testing/src/embark.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Embark {
}

registerAPICall(method, endpoint, callback) {
this.plugins.plugin.registerAPICall(method, endpoint, callback);
this.plugins.registerAPICall(method, endpoint, callback);
}

registerActionForEvent(name, cb) {
Expand Down
4 changes: 4 additions & 0 deletions packages/utils/testing/src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class Plugins {
this.plugin.registerActionForEvent(name, cb);
}

registerAPICall(method, endpoint, callback) {
this.plugin.registerAPICall(method, endpoint, callback);
}

registerConsoleCommand(options) {
this.plugin.registerConsoleCommand(options);
}
Expand Down

0 comments on commit ef1ec3a

Please sign in to comment.