Skip to content

Commit 4f2812d

Browse files
committed
register 'scattermapbox' in jasmine suite that rely on it
1 parent fc34488 commit 4f2812d

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

test/jasmine/tests/mapbox_test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ var TRANSITION_DELAY = 500;
1515

1616
var noop = function() {};
1717

18+
// until it is part of the main plotly.js bundle
19+
Plotly.register(
20+
require('@lib/scattermapbox')
21+
);
22+
1823
Plotly.setPlotConfig({
1924
mapboxAccessToken: MAPBOX_ACCESS_TOKEN
2025
});

test/jasmine/tests/plotschema_test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
var Plotly = require('@lib/index');
22
var Lib = require('@src/lib');
33

4+
// until it is part of the main plotly.js bundle
5+
Plotly.register(
6+
require('@lib/scattermapbox')
7+
);
48

59
describe('plot schema', function() {
610
'use strict';

test/jasmine/tests/scattermapbox_test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ var createGraphDiv = require('../assets/create_graph_div');
99
var destroyGraphDiv = require('../assets/destroy_graph_div');
1010
var customMatchers = require('../assets/custom_matchers');
1111

12+
// until it is part of the main plotly.js bundle
13+
Plotly.register(
14+
require('@lib/scattermapbox')
15+
);
16+
1217
Plotly.setPlotConfig({
1318
mapboxAccessToken: require('@build/credentials.json').MAPBOX_ACCESS_TOKEN
1419
});

0 commit comments

Comments
 (0)