mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
CODEBASE: Suppress false-positive console errors caused by RamCalculation.test.ts (#2002)
This commit is contained in:
@@ -26,6 +26,7 @@ function grabCost<API>(ramEntry: RamCostTree<API>[keyof API]) {
|
|||||||
|
|
||||||
describe("Netscript RAM Calculation/Generation Tests", function () {
|
describe("Netscript RAM Calculation/Generation Tests", function () {
|
||||||
jest.spyOn(console, "warn").mockImplementation(() => {});
|
jest.spyOn(console, "warn").mockImplementation(() => {});
|
||||||
|
jest.spyOn(console, "error").mockImplementation(() => {});
|
||||||
Player.sourceFiles.set(4, 3);
|
Player.sourceFiles.set(4, 3);
|
||||||
// For simulating costs of singularity functions.
|
// For simulating costs of singularity functions.
|
||||||
const baseCost = RamCostConstants.Base;
|
const baseCost = RamCostConstants.Base;
|
||||||
|
|||||||
Reference in New Issue
Block a user