summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-15 12:44:26 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-15 12:44:26 -0800
commit666c2be2ffdf865644fec34ac13e1ebd2e4d9fc8 (patch)
treedcdfa276e05611ba76181927d4dfda63232b5ff1 /js
parentdd6cbb11259b739eb4766728ea444a874e7be449 (diff)
eslint fix.
Diffstat (limited to 'js')
-rwxr-xr-xjs/test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/test.js b/js/test.js
index 3f1b6ff..bcde0aa 100755
--- a/js/test.js
+++ b/js/test.js
@@ -52,13 +52,13 @@ var showSpaces = function(s) {
.replace(/ /g, '␣');
};
-var pathologicalTest = function(testcase, results) {
+var pathologicalTest = function(testcase, res) {
cursor.write(testcase.name + ' ');
console.time(' elapsed time');
var actual = writer.render(reader.parse(testcase.input));
if (actual === testcase.expected) {
cursor.green().write('✓\n').reset();
- results.passed += 1;
+ res.passed += 1;
} else {
cursor.red().write('✘\n');
cursor.cyan();
@@ -70,7 +70,7 @@ var pathologicalTest = function(testcase, results) {
cursor.write(showSpaces(actual));
cursor.write('\n');
cursor.reset();
- results.failed += 1;
+ res.failed += 1;
}
console.timeEnd(' elapsed time');
};