Fix test/jest/Netscript/DynamicRamCalculation.test.js

This commit is contained in:
TheMas3212 2022-04-15 01:12:05 +10:00
parent 8dab9f7871
commit 68ddf1d588
No known key found for this signature in database
GPG Key ID: 62A173A4FDA683CA

@ -6,7 +6,6 @@ import { getRamCost, RamCostConstants } from "../../../src/Netscript/RamCostGene
import { Environment } from "../../../src/Netscript/Environment";
import { RunningScript } from "../../../src/Script/RunningScript";
import { Script } from "../../../src/Script/Script";
import { SourceFileFlags } from "../../../src/SourceFile/SourceFileFlags";
jest.mock(`!!raw-loader!../NetscriptDefinitions.d.ts`, () => "", {
virtual: true,
@ -169,12 +168,6 @@ describe("Netscript Dynamic RAM Calculation/Generation Tests", function () {
testEquality(workerScript.dynamicRamUsage, runningScript.ramUsage);
}
beforeEach(function () {
for (let i = 0; i < SourceFileFlags.length; ++i) {
SourceFileFlags[i] = 3;
}
});
describe("Basic Functions", function () {
it("hack()", async function () {
const f = ["hack"];