Skip to content

Commit 204a20d

Browse files
committed
simplify minified_bundle case
1 parent dc0dcbe commit 204a20d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/jasmine/karma.conf.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ func.defaultConfig = {
173173
// base path that will be used to resolve all patterns (eg. files, exclude)
174174
basePath: constants.pathToRoot,
175175

176+
// frameworks to use
177+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
176178
frameworks: ['jasmine', 'jasmine-spec-tags', 'viewport'],
177179

178180
plugins: [
@@ -319,13 +321,8 @@ func.defaultConfig.preprocessors[pathToCustomMatchers] = ['esbuild'];
319321
func.defaultConfig.preprocessors[testFileGlob] = ['esbuild'];
320322

321323
if(isBundleTest) {
322-
switch(basename(testFileGlob)) {
323-
case 'minified_bundle':
324-
func.defaultConfig.files.push(constants.pathToPlotlyBuildMin);
325-
break;
326-
case 'plotschema':
327-
// no tasks/compress_attributes in this case
328-
break;
324+
if(basename(testFileGlob) === 'minified_bundle') {
325+
func.defaultConfig.files.push(constants.pathToPlotlyBuildMin);
329326
}
330327
} else {
331328
func.defaultConfig.files.push(pathToJQuery);

0 commit comments

Comments
 (0)