mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 23:38:35 +02:00
TESTS: Prevent some test spam (#1126)
This commit is contained in:
@@ -24,6 +24,7 @@ function grabCost<API>(ramEntry: RamCostTree<API>[keyof API]) {
|
||||
}
|
||||
|
||||
describe("Netscript RAM Calculation/Generation Tests", function () {
|
||||
jest.spyOn(console, "warn").mockImplementation(() => {});
|
||||
Player.sourceFiles.set(4, 3);
|
||||
// For simulating costs of singularity functions.
|
||||
const baseCost = RamCostConstants.Base;
|
||||
@@ -44,7 +45,9 @@ describe("Netscript RAM Calculation/Generation Tests", function () {
|
||||
function tryFunction(fn: PotentiallyAsyncFunction) {
|
||||
try {
|
||||
fn()?.catch?.(() => undefined);
|
||||
} catch {}
|
||||
} catch {
|
||||
// Intentionally empty
|
||||
}
|
||||
}
|
||||
|
||||
let scriptRef = createRunningScript("");
|
||||
|
||||
Reference in New Issue
Block a user