mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
fix(test): fix tests getting stuck when embark is run next to it
This commit is contained in:
parent
d33425fb4c
commit
e64ed36092
@ -61,7 +61,7 @@ class Console {
|
|||||||
this.events.setCommandHandler("console:executeCmd", this.executeCmd.bind(this));
|
this.events.setCommandHandler("console:executeCmd", this.executeCmd.bind(this));
|
||||||
this.events.setCommandHandler("console:history", (cb: any) => this.getHistory(this.cmdHistorySize(), cb));
|
this.events.setCommandHandler("console:history", (cb: any) => this.getHistory(this.cmdHistorySize(), cb));
|
||||||
this.events.setCommandHandler("console:provider:ready", (cb: any) => {
|
this.events.setCommandHandler("console:provider:ready", (cb: any) => {
|
||||||
if (this.providerReady) {
|
if (this.providerReady || this.isEmbarkConsole) {
|
||||||
return cb();
|
return cb();
|
||||||
}
|
}
|
||||||
this.events.once("console:provider:done", cb);
|
this.events.once("console:provider:done", cb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user