Skip to content

Commit 61424f2

Browse files
author
jacobawenger
committed
Cleaned up karma configuration files
1 parent 100216a commit 61424f2

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

gulpfile.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ var paths = {
3939
},
4040

4141
tests: {
42-
configs: {
43-
local: "tests/karma.conf.js",
44-
travis: "tests/karma-travis.conf.js"
45-
},
42+
config: "tests/karma.conf.js",
4643
files: [
4744
"bower_components/firebase/firebase.js",
4845
"tests/phantomjs-es5-shim.js",
@@ -97,10 +94,10 @@ gulp.task("scripts", function() {
9794

9895
/* Uses the Karma test runner to run the Jasmine tests */
9996
gulp.task("test", function() {
100-
var configFile = travis ? paths.tests.configs.travis : paths.tests.configs.local;
10197
return gulp.src(paths.tests.files)
10298
.pipe(karma({
103-
configFile: configFile,
99+
configFile: paths.tests.config,
100+
browsers: travis ? ["Firefox"] : ["Chrome"],
104101
action: "run"
105102
}))
106103
.on("error", function(error) {

tests/karma-travis.conf.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/karma.conf.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module.exports = function(config) {
22
config.set({
33
frameworks: ["jasmine"],
4-
browsers: ["Chrome"],
54
autowatch: false,
65
singleRun: true,
76

0 commit comments

Comments
 (0)