diff --git a/lib/jasmine-core/boot0.js b/lib/jasmine-core/boot0.js index 1bfa4193..90afa2fd 100644 --- a/lib/jasmine-core/boot0.js +++ b/lib/jasmine-core/boot0.js @@ -61,4 +61,4 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. for (var property in jasmineInterface) { global[property] = jasmineInterface[property]; } -}()); +})(); diff --git a/lib/jasmine-core/boot1.js b/lib/jasmine-core/boot1.js index 152c8769..0f40607a 100644 --- a/lib/jasmine-core/boot1.js +++ b/lib/jasmine-core/boot1.js @@ -21,7 +21,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** - This file finishes "booting" Jasmine, performing all of the necessary + This file finishes 'booting' Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `boot0.js` but before any project source files or spec files are loaded. Thus this file can also be used to @@ -43,24 +43,28 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var queryString = new jasmine.QueryString({ - getWindowLocation: function() { return window.location; } + getWindowLocation: function() { + return window.location; + } }); - var filterSpecs = !!queryString.getParam("spec"); + var filterSpecs = !!queryString.getParam('spec'); var config = { - stopOnSpecFailure: queryString.getParam("stopOnSpecFailure"), - stopSpecOnExpectationFailure: queryString.getParam("stopSpecOnExpectationFailure"), - hideDisabled: queryString.getParam("hideDisabled") + stopOnSpecFailure: queryString.getParam('stopOnSpecFailure'), + stopSpecOnExpectationFailure: queryString.getParam( + 'stopSpecOnExpectationFailure' + ), + hideDisabled: queryString.getParam('hideDisabled') }; - var random = queryString.getParam("random"); + var random = queryString.getParam('random'); - if (random !== undefined && random !== "") { + if (random !== undefined && random !== '') { config.random = random; } - var seed = queryString.getParam("seed"); + var seed = queryString.getParam('seed'); if (seed) { config.seed = seed; } @@ -71,11 +75,21 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var htmlReporter = new jasmine.HtmlReporter({ env: env, - navigateWithNewParam: function(key, value) { return queryString.navigateWithNewParam(key, value); }, - addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); }, - getContainer: function() { return document.body; }, - createElement: function() { return document.createElement.apply(document, arguments); }, - createTextNode: function() { return document.createTextNode.apply(document, arguments); }, + navigateWithNewParam: function(key, value) { + return queryString.navigateWithNewParam(key, value); + }, + addToExistingQueryString: function(key, value) { + return queryString.fullStringWithNewParam(key, value); + }, + getContainer: function() { + return document.body; + }, + createElement: function() { + return document.createElement.apply(document, arguments); + }, + createTextNode: function() { + return document.createTextNode.apply(document, arguments); + }, timer: new jasmine.Timer(), filterSpecs: filterSpecs }); @@ -90,7 +104,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * Filter which specs will be run by matching the start of the full name against the `spec` query param. */ var specFilter = new jasmine.HtmlSpecFilter({ - filterString: function() { return queryString.getParam("spec"); } + filterString: function() { + return queryString.getParam('spec'); + } }); config.specFilter = function(spec) { @@ -113,13 +129,4 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. htmlReporter.initialize(); env.execute(); }; - - /** - * Helper function for readability above. - */ - function extend(destination, source) { - for (var property in source) destination[property] = source[property]; - return destination; - } - -}()); +})(); diff --git a/lib/jasmine-core/node_boot.js b/lib/jasmine-core/node_boot.js index 4016e3b8..7d4c9c26 100644 --- a/lib/jasmine-core/node_boot.js +++ b/lib/jasmine-core/node_boot.js @@ -23,7 +23,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. module.exports = function(jasmineRequire) { var jasmine = jasmineRequire.core(jasmineRequire); - var env = jasmine.getEnv({suppressLoadErrors: true}); + var env = jasmine.getEnv({ suppressLoadErrors: true }); var jasmineInterface = jasmineRequire.interface(jasmine, env); diff --git a/src/boot/boot0.js b/src/boot/boot0.js index ca72e496..80500089 100644 --- a/src/boot/boot0.js +++ b/src/boot/boot0.js @@ -39,4 +39,4 @@ for (var property in jasmineInterface) { global[property] = jasmineInterface[property]; } -}()); +})(); diff --git a/src/boot/boot1.js b/src/boot/boot1.js index ce41a065..20ec9562 100644 --- a/src/boot/boot1.js +++ b/src/boot/boot1.js @@ -1,5 +1,5 @@ /** - This file finishes "booting" Jasmine, performing all of the necessary + This file finishes 'booting' Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `boot0.js` but before any project source files or spec files are loaded. Thus this file can also be used to @@ -21,24 +21,28 @@ */ var queryString = new jasmine.QueryString({ - getWindowLocation: function() { return window.location; } + getWindowLocation: function() { + return window.location; + } }); - var filterSpecs = !!queryString.getParam("spec"); + var filterSpecs = !!queryString.getParam('spec'); var config = { - stopOnSpecFailure: queryString.getParam("stopOnSpecFailure"), - stopSpecOnExpectationFailure: queryString.getParam("stopSpecOnExpectationFailure"), - hideDisabled: queryString.getParam("hideDisabled") + stopOnSpecFailure: queryString.getParam('stopOnSpecFailure'), + stopSpecOnExpectationFailure: queryString.getParam( + 'stopSpecOnExpectationFailure' + ), + hideDisabled: queryString.getParam('hideDisabled') }; - var random = queryString.getParam("random"); + var random = queryString.getParam('random'); - if (random !== undefined && random !== "") { + if (random !== undefined && random !== '') { config.random = random; } - var seed = queryString.getParam("seed"); + var seed = queryString.getParam('seed'); if (seed) { config.seed = seed; } @@ -49,11 +53,21 @@ */ var htmlReporter = new jasmine.HtmlReporter({ env: env, - navigateWithNewParam: function(key, value) { return queryString.navigateWithNewParam(key, value); }, - addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); }, - getContainer: function() { return document.body; }, - createElement: function() { return document.createElement.apply(document, arguments); }, - createTextNode: function() { return document.createTextNode.apply(document, arguments); }, + navigateWithNewParam: function(key, value) { + return queryString.navigateWithNewParam(key, value); + }, + addToExistingQueryString: function(key, value) { + return queryString.fullStringWithNewParam(key, value); + }, + getContainer: function() { + return document.body; + }, + createElement: function() { + return document.createElement.apply(document, arguments); + }, + createTextNode: function() { + return document.createTextNode.apply(document, arguments); + }, timer: new jasmine.Timer(), filterSpecs: filterSpecs }); @@ -68,7 +82,9 @@ * Filter which specs will be run by matching the start of the full name against the `spec` query param. */ var specFilter = new jasmine.HtmlSpecFilter({ - filterString: function() { return queryString.getParam("spec"); } + filterString: function() { + return queryString.getParam('spec'); + } }); config.specFilter = function(spec) { @@ -91,13 +107,4 @@ htmlReporter.initialize(); env.execute(); }; - - /** - * Helper function for readability above. - */ - function extend(destination, source) { - for (var property in source) destination[property] = source[property]; - return destination; - } - -}()); +})(); diff --git a/src/boot/node_boot.js b/src/boot/node_boot.js index 89ee49b1..af588102 100644 --- a/src/boot/node_boot.js +++ b/src/boot/node_boot.js @@ -1,7 +1,7 @@ module.exports = function(jasmineRequire) { var jasmine = jasmineRequire.core(jasmineRequire); - var env = jasmine.getEnv({suppressLoadErrors: true}); + var env = jasmine.getEnv({ suppressLoadErrors: true }); var jasmineInterface = jasmineRequire.interface(jasmine, env);