mirror of https://github.com/embarklabs/embark.git
refactor(utils/testing): expose `registerAPICall()` on testbed plugins
This commit is contained in:
parent
0ba8d86ea7
commit
ef1ec3a606
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue