mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-03 01:13:55 +00:00
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…
x
Reference in New Issue
Block a user