Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b09f921

Browse files
committed
simplify karma config
1 parent 4e3d62a commit b09f921

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/jasmine/karma.conf.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,24 +313,19 @@ func.defaultConfig = {
313313
};
314314

315315
func.defaultConfig.preprocessors[pathToCustomMatchers] = ['browserify'];
316+
func.defaultConfig.preprocessors[testFileGlob] = ['browserify'];
316317

317318
if(isBundleTest) {
318319
switch(basename(testFileGlob)) {
319320
case 'minified_bundle':
320321
func.defaultConfig.files.push(constants.pathToPlotlyBuildMin);
321-
func.defaultConfig.preprocessors[testFileGlob] = ['browserify'];
322322
break;
323323
case 'plotschema':
324324
func.defaultConfig.browserify.ignoreTransform = './tasks/compress_attributes.js';
325-
func.defaultConfig.preprocessors[testFileGlob] = ['browserify'];
326-
break;
327-
default:
328-
func.defaultConfig.preprocessors[testFileGlob] = ['browserify'];
329325
break;
330326
}
331327
} else {
332328
func.defaultConfig.files.push(pathToJQuery);
333-
func.defaultConfig.preprocessors[testFileGlob] = ['browserify'];
334329
}
335330

336331
// lastly, load test file glob

0 commit comments

Comments
 (0)