Passed
Push — master ( db8b6d...8ae6ad )
by Lucas
02:30
created

node_modules/has-symbol-support-x/tests/run.js   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 14
nc 1
nop 0
dl 0
loc 23
rs 9.7
c 0
b 0
f 0

3 Functions

Rating   Name   Duplication   Size   Complexity  
A run.js ➔ execJasmine 0 3 1
A window.onload 0 6 2
A jasmineEnv.specFilter 0 3 1
1
/* global window, jasmine */
2
/* eslint strict: 0 */
3
(function () {
4
  var jasmineEnv = jasmine.getEnv();
5
  jasmineEnv.updateInterval = 1000;
6
7
  var trivialReporter = new jasmine.TrivialReporter();
8
9
  jasmineEnv.addReporter(trivialReporter);
10
11
  jasmineEnv.specFilter = function (spec) {
12
    return trivialReporter.specFilter(spec);
13
  };
14
15
  var currentWindowOnload = window.onload;
16
  var execJasmine = function () {
17
    jasmineEnv.execute();
18
  };
19
  window.onload = function () {
20
    if (currentWindowOnload) {
21
      currentWindowOnload();
22
    }
23
    execJasmine();
24
  };
25
}());
26