refactor(utils/testing): expose `registerAPICall()` on testbed plugins

This commit is contained in:
Pascal Precht 2020-02-17 12:19:22 +01:00 committed by Iuri Matias
parent 0ba8d86ea7
commit ef1ec3a606
2 changed files with 5 additions and 1 deletions

View File

@ -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) {

View File

@ -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);
}