Updated settings for MapTiles as recommended by leaflet.js Updating current licence text Closes #8209 closes #8215
16 lines
565 B
JavaScript
16 lines
565 B
JavaScript
describe("app.helpers.locations", function() {
|
|
describe("getTiles", function() {
|
|
context("with mapbox enabled", function() {
|
|
beforeEach(function() {
|
|
/* eslint-disable camelcase */
|
|
gon.appConfig = {map: {mapbox: {enabled: true, style: "mapbox/streets-v11", access_token: "yourAccessToken"}}};
|
|
/* eslint-enable camelcase */
|
|
});
|
|
|
|
it("returns tiles from mapbox", function() {
|
|
var tiles = app.helpers.locations.getTiles();
|
|
expect(tiles._url).toMatch("https://api.mapbox.com/");
|
|
});
|
|
});
|
|
});
|
|
});
|