diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-15 12:44:26 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-15 12:44:26 -0800 |
commit | 666c2be2ffdf865644fec34ac13e1ebd2e4d9fc8 (patch) | |
tree | dcdfa276e05611ba76181927d4dfda63232b5ff1 /js | |
parent | dd6cbb11259b739eb4766728ea444a874e7be449 (diff) |
eslint fix.
Diffstat (limited to 'js')
-rwxr-xr-x | js/test.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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'); }; |