Merge pull request #3455 from TheMas3212/fix/dram-tests

Fix test/jest/Netscript/DynamicRamCalculation.test.js
This commit is contained in:
hydroflame 2022-04-14 11:15:32 -04:00 committed by GitHub
commit b1fc909411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"];