From e589625db179b3a30c708cb53b18421a8441fb06 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 3 Apr 2016 10:12:08 -0400 Subject: [PATCH] CHORE - Remove Trailing Spaces --- lib/hook.js | 4 ++-- misc/ast/do-statement.js | 2 +- misc/ast/label.js | 2 +- test/cli/test-html-report.js | 4 ++-- test/cli/test-json-summary-report.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/hook.js b/lib/hook.js index 4ec9dc52..ce238268 100644 --- a/lib/hook.js +++ b/lib/hook.js @@ -98,9 +98,9 @@ function hookRequire(matcher, transformer, options) { extensions = options.extensions || ['.js']; extensions.forEach(function(ext){ - if (!(ext in originalLoaders)) { + if (!(ext in originalLoaders)) { originalLoaders[ext] = Module._extensions[ext] || Module._extensions['.js']; - } + } Module._extensions[ext] = function (module, filename) { var ret = fn(fs.readFileSync(filename, 'utf8'), filename); if (ret.changed) { diff --git a/misc/ast/do-statement.js b/misc/ast/do-statement.js index f41d7512..033c55d7 100644 --- a/misc/ast/do-statement.js +++ b/misc/ast/do-statement.js @@ -1,5 +1,5 @@ var i = 5; -do +do i--; while (i > 0); diff --git a/misc/ast/label.js b/misc/ast/label.js index b7c48c76..7585f441 100644 --- a/misc/ast/label.js +++ b/misc/ast/label.js @@ -1,7 +1,7 @@ var items= [],itemsPassed = 0; var i, j; -function foo() +function foo() { top: for (i = 0; i < items.length; i++){ diff --git a/test/cli/test-html-report.js b/test/cli/test-html-report.js index d88e3f60..ee57f9d9 100644 --- a/test/cli/test-html-report.js +++ b/test/cli/test-html-report.js @@ -237,7 +237,7 @@ module.exports = { }, relativeName: 'generate-names-mangled.js' }; - + result = reporter.standardLinkMapper().ancestorHref(node, 2); test.ok(result === '../../'); @@ -262,7 +262,7 @@ module.exports = { }, relativeName: 'generate-names-mangled.js' }; - + result = reporter.standardLinkMapper().ancestorHref(node, 2); test.ok(result === '../../'); diff --git a/test/cli/test-json-summary-report.js b/test/cli/test-json-summary-report.js index b2e7cf71..153f0bde 100644 --- a/test/cli/test-json-summary-report.js +++ b/test/cli/test-json-summary-report.js @@ -45,7 +45,7 @@ module.exports = { }); finalSummary = objectUtils.mergeSummaryObjects.apply(null, summaries); obj.total = finalSummary; - + test.ok(existsSync(jsonFile)); reportObj = JSON.parse(fs.readFileSync(jsonFile, 'utf8')); test.deepEqual(Object.keys(obj).sort(), Object.keys(reportObj).sort());