Skip to content

Commit 50c49cf

Browse files
committed
resolve #163 - use local topojson files in geo_test.js
1 parent 16be6a4 commit 50c49cf

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

test/jasmine/karma.conf.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ func.defaultConfig = {
152152
pathToUnpolyfill,
153153
// available to fetch from /base/path/to/mathjax
154154
// more info: http://karma-runner.github.io/3.0/config/files.html
155-
{pattern: pathToMathJax + '/**', included: false, watched: false, served: true}
155+
{pattern: pathToMathJax + '/**', included: false, watched: false, served: true},
156+
// available to fetch local topojson files
157+
{pattern: constants.pathToTopojsonDist + '/**', included: false, watched: false, served: true}
156158
],
157159

158160
// list of files / pattern to exclude

test/jasmine/tests/geo_test.js

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ var click = require('../assets/click');
1818
var DBLCLICKDELAY = require('@src/constants/interactions').DBLCLICKDELAY;
1919
var HOVERMINTIME = require('@src/components/fx').constants.HOVERMINTIME;
2020

21+
// use local topojson files
22+
Plotly.setPlotConfig({
23+
topojsonURL: '/base/dist/topojson/'
24+
});
25+
2126
function move(fromX, fromY, toX, toY, delay) {
2227
return new Promise(function(resolve) {
2328
mouseEvent('mousemove', fromX, fromY);

0 commit comments

Comments
 (0)