Resolved more circular dependencies. Installed acorn-walk and imported it in RamCalculations using ES6 modules. Fixed bugs in stock market rework

This commit is contained in:
danielyxie
2019-05-06 18:01:06 -07:00
parent 8a5b6f6cbc
commit cdb5dfec62
34 changed files with 7246 additions and 305 deletions

View File

@@ -0,0 +1,17 @@
/**
* TODO This should also test the calcualteRamUsage() function from
* /Script/RamCalculations but there's some issues with getting tests to run
* when any npm package is included in the build (/Script/RamCalculations includes
* walk from acorn).
*/
import { getRamCost } from "../../src/Netscript/RamCostGenerator";
//import { calculateRamUsage } from "../../src/Script/RamCalculations"
const assert = chai.assert;
const expect = chai.expect;
console.log("Beginning Netscript Static RAM Calculation/Generation Tests");
describe("Netscript Static RAM Calculation/Generation Tests", function() {
});