Skip to content

Commit

Permalink
CODEBASE: Suppress false-positive console errors caused by RamCalcula…
Browse files Browse the repository at this point in the history
…tion.test.ts
  • Loading branch information
catloversg committed Mar 6, 2025
1 parent 6530b43 commit 38915c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/jest/Netscript/RamCalculation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function grabCost<API>(ramEntry: RamCostTree<API>[keyof API]) {

describe("Netscript RAM Calculation/Generation Tests", function () {
jest.spyOn(console, "warn").mockImplementation(() => {});
jest.spyOn(console, "error").mockImplementation(() => {});
Player.sourceFiles.set(4, 3);
// For simulating costs of singularity functions.
const baseCost = RamCostConstants.Base;
Expand Down

0 comments on commit 38915c4

Please sign in to comment.