mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
test: run Traffic fixtures with normal browser security
This commit is contained in:
1 parent
f16fda2350
commit
77ed0a7c31
4 files changed
+24
-4
No files matched your search
@@ -33,9 +33,9 @@ test('traffic fixtures provide aligned current road tiles and partial flow cover
|
||||
|
||||
test('fixture TileJSON and every road/flow request stay on intercepted sources', () => {
|
||||
const request = (url) => trafficFixtureResponse({ url: () => url });
|
||||
const metadata = JSON.parse(
|
||||
request('https://tiles.openfreemap.org/planet').body,
|
||||
);
|
||||
const tileJson = request('https://tiles.openfreemap.org/planet');
|
||||
assert.equal(tileJson.headers['access-control-allow-origin'], '*');
|
||||
const metadata = JSON.parse(tileJson.body);
|
||||
const tileUrl = metadata.tiles[0]
|
||||
.replace('{z}', '14')
|
||||
.replace('{x}', '935')
|
||||
|
||||
Reference in new issue
Block a user