TESTS: Prevent some test spam (#1126)

This commit is contained in:
Snarling
2024-02-26 08:22:33 -05:00
committed by GitHub
parent 373ced2efe
commit 91105c6d8c
6 changed files with 27 additions and 26 deletions
+1
View File
@@ -44,6 +44,7 @@ describe("MessageHelpers tests", () => {
it("Should not repeatedly send the Icarus message after the player's first bitnode completion", () => {
initSourceFiles();
Player.sourceFiles.set(1, 1);
jest.spyOn(console, "warn").mockImplementation(() => {}); // Prevent test spam
Player.queueAugmentation(AugmentationName.TheRedPill);
installAugmentations();
Player.gainHackingExp(2 ** 200);