Permalink
Browse files

linted bin/nodeunit

  • Loading branch information...
1 parent d4e76c1 commit c6b42dcb8d808da36a1888467753aaa76b994f19 @BryanDonovan committed Nov 27, 2011
Showing with 5 additions and 2 deletions.
  1. +2 −0 .gitignore
  2. +3 −2 bin/nodeunit
View
@@ -3,3 +3,5 @@ stamp-build
*~
gmon.out
v8.log
+node_modules/nodelint
+node_modules/.bin/nodelint
View
@@ -102,16 +102,17 @@ if (files.length === 0) {
if (config_file) {
content = fs.readFileSync(config_file, 'utf8');
var custom_options = JSON.parse(content);
+ var option;
- for (var option in custom_options) {
+ for (option in custom_options) {
if (typeof option === 'string') {
options[option] = custom_options[option];
}
}
}
var builtin_reporters = require(__dirname + '/../lib/reporters');
-if (reporter_file in builtin_reporters) {
+if (builtin_reporters.hasOwnProperty(reporter_file)) {
testrunner = builtin_reporters[reporter_file];
}
else {

0 comments on commit c6b42dc

Please sign in to comment.