Skip to content

Commit a45bff4

Browse files
committed
use build folder for plotly.js.min for jasmine test
1 parent ef081bf commit a45bff4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

tasks/cibundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ var _bundle = require('./util/browserify_wrapper');
88
*
99
* - plotly.js bundle in build/
1010
* - plotly-geo-assets.js bundle in dist/ (in accordance with test/image/index.html)
11-
* - plotly.min.js bundle in dist/ (for requirejs test)
11+
* - plotly.min.js bundle in build/ (for minified_bundle test)
1212
*/
1313

1414
// Browserify plotly.js and plotly.min.js
1515
_bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyBuild, {
1616
standalone: 'Plotly',
1717
debug: true,
18-
pathToMinBundle: constants.pathToPlotlyDistMin
18+
pathToMinBundle: constants.pathToPlotlyBuildMin
1919
});
2020

2121
// Browserify the geo assets

tasks/util/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ module.exports = {
5252
pathToPlotlyCore: path.join(pathToSrc, 'core.js'),
5353
pathToPlotlyVersion: path.join(pathToSrc, 'version.js'),
5454
pathToPlotlyBuild: path.join(pathToBuild, 'plotly.js'),
55+
pathToPlotlyBuildMin: path.join(pathToBuild, 'plotly.min.js'),
5556
pathToPlotlyDist: path.join(pathToDist, 'plotly.js'),
5657
pathToPlotlyDistMin: path.join(pathToDist, 'plotly.min.js'),
5758
pathToPlotlyDistWithMeta: path.join(pathToDist, 'plotly-with-meta.js'),

test/jasmine/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func.defaultConfig.preprocessors[pathToCustomMatchers] = ['browserify'];
307307
if(isBundleTest) {
308308
switch(basename(testFileGlob)) {
309309
case 'minified_bundle':
310-
func.defaultConfig.files.push(constants.pathToPlotlyDistMin);
310+
func.defaultConfig.files.push(constants.pathToPlotlyBuildMin);
311311
func.defaultConfig.preprocessors[testFileGlob] = ['browserify'];
312312
break;
313313
case 'plotschema':

0 commit comments

Comments
 (0)