Skip to content

Commit

Permalink
fix indentation and change to double quotes
Browse files Browse the repository at this point in the history
Also fixed the enforceall test I made a while back to use double quotes.
  • Loading branch information
paul-wade authored and rwaldron committed Aug 18, 2014
1 parent 5de760d commit f4eeb5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -4678,7 +4678,7 @@ var JSHINT = (function () {
if (item[0] === "-") {
slice = item.slice(1);
JSHINT.blacklist[slice] = slice;
//remove from predefined if there
// remove from predefined if there
delete predefined[slice];
} else {
prop = Object.getOwnPropertyDescriptor(o.predef, item);
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ exports.nonbsp = function (test) {
};

exports.enforceall = function (test) {
var src = fs.readFileSync(__dirname + '/fixtures/enforceall.js', 'utf8');
var src = fs.readFileSync(__dirname + "/fixtures/enforceall.js", "utf8");

// Throws errors not normally on be default
TestRun(test)
Expand All @@ -1639,11 +1639,11 @@ exports.enforceall = function (test) {
};

exports.removeglobal = function (test) {
var src = fs.readFileSync(__dirname + '/fixtures/removeglobals.js', 'utf8');
var src = fs.readFileSync(__dirname + "/fixtures/removeglobals.js", "utf8");

TestRun(test)
.addError(1,"'JSON' is not defined.")
.test(src, {undef: true, predef: ["-JSON","myglobal"]});
TestRun(test)
.addError(1, "'JSON' is not defined.")
.test(src, { undef: true, predef: ["-JSON", "myglobal"] });

test.done();
};
};

0 comments on commit f4eeb5c

Please sign in to comment.