forked from angular/router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.es5.conf.js
31 lines (23 loc) · 714 Bytes
/
karma.es5.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// This runs the tests for the router in Angular 1.x
var buildDir = require('./config').build.dir;
var sauceConfig = require('./config/karma.sauce.conf');
var travisConfig = require('./config/karma.travis.conf');
module.exports = function(config) {
var options = {
frameworks: ['jasmine'],
files: [
'node_modules/angular/angular.js',
'node_modules/angular-animate/angular-animate.js',
'node_modules/angular-mocks/angular-mocks.js',
buildDir + '/*.es5.js',
'test/*.es5.js',
'test/*.es5.spec.js'
],
browsers: ['Chrome']
};
if (process.argv.indexOf('--sauce') > -1) {
sauceConfig(options);
travisConfig(options);
}
config.set(options);
};