diff --git a/src/core/CallTracker.js b/src/core/CallTracker.js index f1fdfbc5..9a26b38b 100644 --- a/src/core/CallTracker.js +++ b/src/core/CallTracker.js @@ -64,7 +64,7 @@ getJasmineRequireObj().CallTracker = function(j$) { */ this.allArgs = function() { var callArgs = []; - for(var i = 0; i < calls.length; i++){ + for(var i = 0; i < calls.length; i++) { callArgs.push(calls[i].args); } diff --git a/src/core/Expector.js b/src/core/Expector.js index a8c717f2..55667f51 100644 --- a/src/core/Expector.js +++ b/src/core/Expector.js @@ -3,7 +3,7 @@ getJasmineRequireObj().Expector = function(j$) { this.util = options.util || { buildFailureMessage: function() {} }; this.customEqualityTesters = options.customEqualityTesters || []; this.actual = options.actual; - this.addExpectationResult = options.addExpectationResult || function(){}; + this.addExpectationResult = options.addExpectationResult || function() {}; this.filters = new j$.ExpectationFilterChain(); } diff --git a/src/core/MockDate.js b/src/core/MockDate.js index 0e5a8008..9dfc0628 100644 --- a/src/core/MockDate.js +++ b/src/core/MockDate.js @@ -76,7 +76,7 @@ getJasmineRequireObj().MockDate = function() { FakeDate.parse = GlobalDate.parse; FakeDate.UTC = GlobalDate.UTC; } - } + } return MockDate; }; diff --git a/src/core/PrettyPrinter.js b/src/core/PrettyPrinter.js index cb738d28..91a42e86 100644 --- a/src/core/PrettyPrinter.js +++ b/src/core/PrettyPrinter.js @@ -113,7 +113,7 @@ getJasmineRequireObj().pp = function(j$) { } this.format(array[i]); } - if(array.length > length){ + if(array.length > length) { this.append(', ...'); } @@ -153,7 +153,7 @@ getJasmineRequireObj().pp = function(j$) { i++; }, this ); - if (set.size > size){ + if (set.size > size) { this.append(', ...'); } this.append(' )'); @@ -178,7 +178,7 @@ getJasmineRequireObj().pp = function(j$) { i++; }, this ); - if (map.size > size){ + if (map.size > size) { this.append(', ...'); } this.append(' )'); diff --git a/src/core/QueueRunner.js b/src/core/QueueRunner.js index 1566bcd3..c183c1d4 100644 --- a/src/core/QueueRunner.js +++ b/src/core/QueueRunner.js @@ -22,7 +22,7 @@ getJasmineRequireObj().QueueRunner = function(j$) { this.queueableFns = queueableFns.concat(attrs.cleanupFns || []); this.firstCleanupIx = queueableFns.length; this.onComplete = attrs.onComplete || emptyFn; - this.clearStack = attrs.clearStack || function(fn) {fn();}; + this.clearStack = attrs.clearStack || function(fn) { fn(); }; this.onException = attrs.onException || emptyFn; this.userContext = attrs.userContext || new j$.UserContext(); this.timeout = attrs.timeout || {setTimeout: setTimeout, clearTimeout: clearTimeout}; diff --git a/src/core/StackTrace.js b/src/core/StackTrace.js index c10ec951..6c6ec458 100644 --- a/src/core/StackTrace.js +++ b/src/core/StackTrace.js @@ -104,6 +104,6 @@ getJasmineRequireObj().StackTrace = function(j$) { return messageLines.length; } - + return StackTrace; }; diff --git a/src/core/base.js b/src/core/base.js index 3a584f09..9c8be408 100644 --- a/src/core/base.js +++ b/src/core/base.js @@ -171,7 +171,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) { * @name jasmine.truthy * @function */ - j$.truthy = function() {return new j$.Truthy();}; + j$.truthy = function() { return new j$.Truthy(); }; /** * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), @@ -179,7 +179,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) { * @name jasmine.falsy * @function */ - j$.falsy = function() {return new j$.Falsy();}; + j$.falsy = function() { return new j$.Falsy(); }; /** * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), @@ -187,7 +187,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) { * @name jasmine.empty * @function */ - j$.empty = function() {return new j$.Empty();}; + j$.empty = function() { return new j$.Empty(); }; /** * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), @@ -195,7 +195,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) { * @name jasmine.notEmpty * @function */ - j$.notEmpty = function() {return new j$.NotEmpty();}; + j$.notEmpty = function() { return new j$.NotEmpty(); }; /** * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), diff --git a/src/html/HtmlReporter.js b/src/html/HtmlReporter.js index c9be5590..880f9558 100644 --- a/src/html/HtmlReporter.js +++ b/src/html/HtmlReporter.js @@ -108,7 +108,7 @@ jasmineRequire.HtmlReporter = function(j$) { console.error('Spec \'' + result.fullName + '\' has no expectations.'); } - if (!symbols){ + if (!symbols) { symbols = find('.jasmine-symbol-summary'); }