Converted mocha unit tests to run using mocha-webpack (mochapack) package

This commit is contained in:
danielyxie
2019-05-09 19:03:13 -07:00
parent cdb5dfec62
commit ece246b391
16 changed files with 2120 additions and 6955 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ export const RamCosts: IMap<any> = {
getStamina: () => RamCostConstants.ScriptBladeburnerApiBaseRamCost,
joinBladeburnerFaction: () => RamCostConstants.ScriptBladeburnerApiBaseRamCost,
joinBladeburnerDivision: () => RamCostConstants.ScriptBladeburnerApiBaseRamCost,
getBonusTime: () => RamCostConstants.ScriptBladeburnerApiBaseRamCost,
getBonusTime: () => 0,
},
// Coding Contract API
@@ -327,6 +327,6 @@ export function getRamCost(...args: string[]): number {
return curr;
}
console.warn(`Expected type: ${currType}`);
console.warn(`Unexpected type (${currType}) for value [${args}]`);
return 0;
}