Skip to content

Commit 5733a95

Browse files
committed
fix some mapbox jasmine tests
1 parent d35eb4c commit 5733a95

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/jasmine/tests/mapbox_test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ describe('mapbox plots', function() {
12261226
expect(s.text()).toEqual('© CARTO, © OpenStreetMap contributors');
12271227
assertLinks(s, [
12281228
'https://carto.com/about-carto/',
1229-
'https://www.openstreetmap.org/copyright'
1229+
'http://www.openstreetmap.org/about/'
12301230
]);
12311231
})
12321232
.then(done, done.fail);
@@ -1279,15 +1279,15 @@ describe('mapbox plots', function() {
12791279
.then(done, done.fail);
12801280
});
12811281

1282-
it('@gl should be displayed for style from MapLibre', function(done) {
1282+
it('@gl should be displayed for style (basic)', function(done) {
12831283
Plotly.newPlot(gd, [{type: 'scattermapbox'}], {mapbox: {style: 'basic'}})
12841284
.then(function() {
12851285
var s = d3SelectAll('.maplibregl-ctrl-attrib');
12861286
expect(s.size()).toBe(1);
12871287
expect(s.text()).toEqual('© CARTO, © OpenStreetMap contributors');
12881288
assertLinks(s, [
1289-
'https://www.openstreetmap.org/about/',
1290-
1289+
'https://carto.com/about-carto/',
1290+
'http://www.openstreetmap.org/about/',
12911291
]);
12921292
})
12931293
.then(done, done.fail);
@@ -1701,25 +1701,25 @@ describe('test mapbox trace/layout *below* interactions', function() {
17011701
})
17021702
.then(function() {
17031703
_assert('base', {
1704-
scatter: [23, 24, 25, 26],
1705-
density: [17],
1706-
choropleth: [5, 6]
1704+
scatter: [96, 97, 98, 99],
1705+
density: [13],
1706+
choropleth: [72, 73]
17071707
});
17081708
})
17091709
.then(function() { return Plotly.restyle(gd, 'below', ''); })
17101710
.then(function() {
17111711
_assert('all traces *below:""', {
1712-
scatter: [23, 24, 25, 26],
1713-
density: [22],
1714-
choropleth: [20, 21]
1712+
scatter: [96, 97, 98, 99],
1713+
density: [95],
1714+
choropleth: [93, 94]
17151715
});
17161716
})
17171717
.then(function() { return Plotly.restyle(gd, 'below', null); })
17181718
.then(function() {
17191719
_assert('back to base', {
1720-
scatter: [23, 24, 25, 26],
1721-
density: [17],
1722-
choropleth: [5, 6]
1720+
scatter: [96, 97, 98, 99],
1721+
density: [13],
1722+
choropleth: [72, 73]
17231723
});
17241724
})
17251725
.then(done, done.fail);

0 commit comments

Comments
 (0)