mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
Added getServerMaxRam and getServerUsedRam, deprecated getServerRam
This commit is contained in:
@@ -394,6 +394,16 @@ describe("Netscript Dynamic RAM Calculation/Generation Tests", function() {
|
||||
await testNonzeroDynamicRamCost(f);
|
||||
});
|
||||
|
||||
it("getServerMaxRam()", async function() {
|
||||
const f = ["getServerMaxRam"];
|
||||
await testNonzeroDynamicRamCost(f);
|
||||
});
|
||||
|
||||
it("getServerUsedRam()", async function() {
|
||||
const f = ["getServerUsedRam"];
|
||||
await testNonzeroDynamicRamCost(f);
|
||||
});
|
||||
|
||||
it("serverExists()", async function() {
|
||||
const f = ["serverExists"];
|
||||
await testNonzeroDynamicRamCost(f);
|
||||
|
||||
@@ -284,6 +284,16 @@ describe("Netscript Static RAM Calculation/Generation Tests", function() {
|
||||
await expectNonZeroRamCost(f);
|
||||
});
|
||||
|
||||
it("getServerMaxRam()", async function() {
|
||||
const f = ["getServerMaxRam"];
|
||||
await expectNonZeroRamCost(f);
|
||||
});
|
||||
|
||||
it("getServerUsedRam()", async function() {
|
||||
const f = ["getServerUsedRam"];
|
||||
await expectNonZeroRamCost(f);
|
||||
});
|
||||
|
||||
it("serverExists()", async function() {
|
||||
const f = ["serverExists"];
|
||||
await expectNonZeroRamCost(f);
|
||||
|
||||
Reference in New Issue
Block a user