source: trip-planner-front/node_modules/karma-jasmine/lib/boot.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * Jasmine 2.0 standalone `boot.js` modified for Karma.
3 * This file is registered in `index.js`. This version
4 * does not include `HtmlReporter` setup.
5 */
6;(function (global) {
7 /* global jasmineRequire */
8 'use strict'
9
10 /**
11 * Require Jasmine's core files. Specifically, this requires and
12 * attaches all of Jasmine's code to the `jasmine` reference.
13 */
14 var jasmine = jasmineRequire.core(jasmineRequire)
15
16 /**
17 * Obtain the public Jasmine API.
18 */
19 var jasmineInterface = jasmineRequire.interface(jasmine, jasmine.getEnv())
20
21 /**
22 * Setting up timing functions to be able to be overridden.
23 * Certain browsers (Safari, IE 8, PhantomJS) require this hack.
24 */
25 /* eslint-disable no-self-assign */
26 global.setTimeout = global.setTimeout
27 global.setInterval = global.setInterval
28 global.clearTimeout = global.clearTimeout
29 global.clearInterval = global.clearInterval
30 /* eslint-enable no-self-assign */
31
32 /**
33 * Add all of the Jasmine global/public interface to the proper
34 * global, so a project can use the public interface directly.
35 * For example, calling `describe` in specs instead of
36 * `jasmine.getEnv().describe`.
37 */
38 for (var property in jasmineInterface) {
39 if (Object.prototype.hasOwnProperty.call(jasmineInterface, property)) {
40 global[property] = jasmineInterface[property]
41 }
42 }
43}(typeof window !== 'undefined' ? window : global))
Note: See TracBrowser for help on using the repository browser.