Skip to content

Commit cab00fd

Browse files
committed
Fixed the issue with build
1 parent eb69b2a commit cab00fd

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

karma.conf.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ var webpackConfig = require('./webpack.config.js');
55

66

77
module.exports = function (config) {
8-
//workaround for travis
9-
if (process.env.TRAVIS) {
10-
configuration.browsers = ['PhantomJS'];
11-
}
8+
129
var configuration = {
1310

1411
// base path that will be used to resolve all patterns (eg. files, exclude)
@@ -74,5 +71,11 @@ module.exports = function (config) {
7471
// if true, Karma captures browsers, runs the tests and exits
7572
singleRun: false
7673
};
74+
75+
//workaround for travis
76+
if (process.env.TRAVIS) {
77+
configuration.browsers = ['PhantomJS'];
78+
}
79+
7780
config.set(configuration);
78-
}
81+
};

0 commit comments

Comments
 (0)