8000 fix attribution tests · plotly/plotly.js@7ce0a68 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ce0a68

Browse files
committed
fix attribution tests
1 parent 0bfbfcd commit 7ce0a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/mapbox_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ describe('mapbox plots', function() {
12251225
expect(s.size()).toBe(1);
12261226
expect(s.text())< 9BC6 /span>.toEqual('© CARTO, © OpenStreetMap contributors');
12271227
assertLinks(s, [
1228-
'https://carto.com/',
1228+
'https://carto.com/about-carto/',
12291229
'https://www.openstreetmap.org/copyright'
12301230
]);
12311231
})
@@ -1359,7 +1359,7 @@ describe('mapbox plots', function() {
13591359
.then(function() {
13601360
var s = d3SelectAll('.maplibregl-ctrl-attrib');
13611361
expect(s.size()).toBe(1);
1362-
expect(s.text()).toEqual([XSS + attr, MapLibre © OpenStreetMap Improve this map'].join(' | '));
1362+
expect(s.text()).toEqual([XSS + attr, CARTO, © OpenStreetMap contributors'].join(' | '));
13631363
expect(s.html().indexOf('<img src=x onerror="alert(XSS);">')).toBe(-1);
13641364
expect(s.html().indexOf('&lt;img src=x onerror="alert(XSS);"&gt;')).not.toBe(-1);
13651365
})

0 commit comments

Comments
 (0)
0