Skip to content

Commit ef1ec3a

Browse files
0x-r4bbitiurimatias
authored andcommitted
refactor(utils/testing): expose registerAPICall() on testbed plugins
1 parent 0ba8d86 commit ef1ec3a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/utils/testing/src/embark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Embark {
2020
}
2121

2222
registerAPICall(method, endpoint, callback) {
23-
this.plugins.plugin.registerAPICall(method, endpoint, callback);
23+
this.plugins.registerAPICall(method, endpoint, callback);
2424
}
2525

2626
registerActionForEvent(name, cb) {

packages/utils/testing/src/plugin.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ class Plugins {
3232
this.plugin.registerActionForEvent(name, cb);
3333
}
3434

35+
registerAPICall(method, endpoint, callback) {
36+
this.plugin.registerAPICall(method, endpoint, callback);
37+
}
38+
3539
registerConsoleCommand(options) {
3640
this.plugin.registerConsoleCommand(options);
3741
}

0 commit comments

Comments
 (0)