karma.conf.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 31
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 31
rs 10
wmc 2
mnd 1
bc 3
fnc 1
bpm 3
cpm 2
noi 2
1
module.exports = function (config) {
0 ignored issues
show
introduced by
Definition for rule 'keyword-spacing' was not found
Loading history...
2
  var files = [
3
    'test/vendor/object-assign-polyfill.js',
4
    'test/vendor/prototype-bind-polyfill.js',
5
    'test/vendor/jquery.min.js',
6
    'test/vendor/underscore.js'
7
  ];
8
9
  if (process.env.MINIFIED) {
0 ignored issues
show
introduced by
Unexpected use of process.env.
Loading history...
10
    files.push('dist/backbone.min.js');
11
  } else {
12
    files.push('dist/backbone.js');
13
  }
14
15
  files = files.concat(['test/setup/*.js', 'test/*.js']);
16
17
  config.set({
18
    basePath: '',
19
    port: 9877,
20
    colors: true,
21
    logLevel: 'INFO',
22
    autoWatch: false,
23
    browsers: ['PhantomJS'],
24
    singleRun: true,
25
    frameworks: ['qunit'],
26
    reporters: ['progress'],
27
28
    files: files
29
30
  });
31
};
32