mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
BUGFIX: Running scripts may be loaded before main UI (#1726)
This commit is contained in:
@@ -5,6 +5,7 @@ import { loadAllRunningScripts } from "../../src/NetscriptWorker";
|
||||
import { Settings } from "../../src/Settings/Settings";
|
||||
import { Player, setPlayer } from "../../src/Player";
|
||||
import { PlayerObject } from "../../src/PersonObjects/Player/PlayerObject";
|
||||
import { UIEventEmitter, UIEventType } from "../../src/ui/UIEventEmitter";
|
||||
jest.useFakeTimers();
|
||||
|
||||
// Direct tests of loading and saving.
|
||||
@@ -146,6 +147,7 @@ function loadStandardServers() {
|
||||
}
|
||||
}`); // Fix confused highlighting `
|
||||
loadAllRunningScripts();
|
||||
UIEventEmitter.emit(UIEventType.MainUILoaded);
|
||||
}
|
||||
|
||||
test("load/saveAllServers", () => {
|
||||
|
||||
Reference in New Issue
Block a user