move eslintrc up a directory

This commit is contained in:
Thomas Grainger 2017-04-28 16:51:57 +01:00
parent f7547db272
commit ee07b72415
No known key found for this signature in database
GPG key ID: 995EA0A029283160
4 changed files with 12 additions and 12 deletions

View file

@ -18,7 +18,7 @@ import "./tests/operations/FlowControl.js";
import "./tests/operations/MorseCode.js";
import "./tests/operations/StrUtils.js";
var allTestsPassing = true,
let allTestsPassing = true,
testStatusCounts = {
total: 0,
};
@ -31,7 +31,7 @@ var allTestsPassing = true,
* @returns {string}
*/
function statusToIcon(status) {
var icons = {
let icons = {
erroring: "🔥",
failing: "❌",
passing: "✔️️",
@ -47,7 +47,7 @@ function statusToIcon(status) {
*/
function handleTestResult(testResult) {
allTestsPassing = allTestsPassing && testResult.status === "passing";
var newCount = (testStatusCounts[testResult.status] || 0) + 1;
let newCount = (testStatusCounts[testResult.status] || 0) + 1;
testStatusCounts[testResult.status] = newCount;
testStatusCounts.total += 1;
@ -82,8 +82,8 @@ TestRegister.runTests()
console.log("\n");
for (var testStatus in testStatusCounts) {
var count = testStatusCounts[testStatus];
for (let testStatus in testStatusCounts) {
let count = testStatusCounts[testStatus];
if (count > 0) {
console.log(testStatus.toUpperCase(), count);
}