mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 23:38:35 +02:00
lint fixes
This commit is contained in:
@@ -18,6 +18,11 @@ const CorpCost = 1024 - ScriptBaseCost;
|
||||
|
||||
describe("Parsing NetScript code to work out static RAM costs", function () {
|
||||
// Tests numeric equality, allowing for floating point imprecision - and includes script base cost
|
||||
/**
|
||||
*
|
||||
* @param {number} val
|
||||
* @param {number} expected
|
||||
*/
|
||||
function expectCost(val, expected) {
|
||||
const expectedWithBase = expected + ScriptBaseCost;
|
||||
expect(val).toBeGreaterThanOrEqual(expectedWithBase - 100 * Number.EPSILON);
|
||||
|
||||
Reference in New Issue
Block a user