karma.conf.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 31
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
eloc 25
nc 1
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 3
mnd 1
bc 3
fnc 2
bpm 1.5
cpm 1.5
noi 1
1
module.exports = function(config) {
0 ignored issues
show
introduced by
Definition for rule 'keyword-spacing' was not found
Loading history...
2
  function getSpecs() {
3
    var prefix = process.env.KARMA_SPECS; // eslint-disable-line
4
    if (!prefix) {
5
      return ["test/*.spec.js"];
6
    }
7
    return [`test/${prefix}*.spec.js`];
8
  }
9
10
  config.set({
11
    basePath: "",
12
    port: 9877,
13
    colors: true,
14
    logLevel: "INFO",
15
    autoWatch: false,
16
    browsers: ["PhantomJS"],
17
    singleRun: true,
18
    frameworks: ["jasmine"],
19
    reporters: ["mocha"],
20
21
    files: [
22
      "examples/css/fontello.css",
23
      "examples/css/font-awesome.css",
24
      "test/vendor/object-assign-polyfill.js",
25
      "test/vendor/object-entries-polyfill.js",
26
      "test/vendor/prototype-bind-polyfill.js",
27
      "test/vendor/underscore.js",
28
      "dist/markerfactory.js"
29
    ].concat(getSpecs())
30
  });
31
};
32