Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 31 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | module.exports = function(config) { |
||
|
|||
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 |