Fix test for older ES versions
This commit is contained in:
@@ -265,8 +265,7 @@ test('Custom map options', function () {
|
|||||||
|
|
||||||
assertPresent(tiles);
|
assertPresent(tiles);
|
||||||
|
|
||||||
ok(tiles.find('.leaflet-tile')[0].src.startsWith('http://example.com'));
|
ok(tiles.find('.leaflet-tile')[0].src.indexOf('http://example.com') === 0);
|
||||||
|
|
||||||
ok(view.$el.find('.leaflet-control-attribution').text().indexOf('MyTiles') !== -1);
|
ok(view.$el.find('.leaflet-control-attribution').text().indexOf('MyTiles') !== -1);
|
||||||
|
|
||||||
view.remove();
|
view.remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user