Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Mar 30, 2022
1 parent c65106c commit 06b4357
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/compat/node-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
require('./tests');
var tests = global.tests;
var result = {};
var name;

for (var name in tests) {
for (name in tests) {
var test = tests[name];
try {
if (typeof test == 'function') {
Expand All @@ -18,7 +19,7 @@ for (var name in tests) {

if (process.argv.indexOf('--mode=JSON') !== -1) {
console.log(JSON.stringify(result, null, ' '));
} else for (var name in result) {
} else for (name in result) {
var filled = name + ' | '.slice(name.length);
if (result[name]) console.log('\u001B[32m' + filled + 'not required\u001B[0m');
else console.log('\u001B[31m' + filled + 'required\u001B[0m');
Expand Down

0 comments on commit 06b4357

Please sign in to comment.