Skip to content

Commit

Permalink
linted bin/nodeunit
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanDonovan committed Nov 27, 2011
1 parent d4e76c1 commit c6b42dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@ stamp-build
*~ *~
gmon.out gmon.out
v8.log v8.log
node_modules/nodelint
node_modules/.bin/nodelint
5 changes: 3 additions & 2 deletions bin/nodeunit
Expand Up @@ -102,16 +102,17 @@ if (files.length === 0) {
if (config_file) { if (config_file) {
content = fs.readFileSync(config_file, 'utf8'); content = fs.readFileSync(config_file, 'utf8');
var custom_options = JSON.parse(content); var custom_options = JSON.parse(content);
var option;


for (var option in custom_options) { for (option in custom_options) {
if (typeof option === 'string') { if (typeof option === 'string') {
options[option] = custom_options[option]; options[option] = custom_options[option];
} }
} }
} }


var builtin_reporters = require(__dirname + '/../lib/reporters'); var builtin_reporters = require(__dirname + '/../lib/reporters');
if (reporter_file in builtin_reporters) { if (builtin_reporters.hasOwnProperty(reporter_file)) {
testrunner = builtin_reporters[reporter_file]; testrunner = builtin_reporters[reporter_file];
} }
else { else {
Expand Down

0 comments on commit c6b42dc

Please sign in to comment.