From ad7c5506ed3834f7cb31e3d20eaa92ddd4435b02 Mon Sep 17 00:00:00 2001 From: Vinicius Kiatkoski Neves Date: Mon, 1 Apr 2019 17:39:05 +0200 Subject: [PATCH] :white_check_mark: AttributionControl editLink rel tests --- test/unit/ui/control/attribution.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/ui/control/attribution.test.js b/test/unit/ui/control/attribution.test.js index 5316a11b650..4968bb93d12 100644 --- a/test/unit/ui/control/attribution.test.js +++ b/test/unit/ui/control/attribution.test.js @@ -118,6 +118,7 @@ test('AttributionControl has the correct edit map link', (t) => { map.addLayer({ id: '1', type: 'fill', source: '1' }); map.on('data', (e) => { if (e.dataType === 'source' && e.sourceDataType === 'metadata') { + t.equal(attribution._editLink.rel, 'noopener nofollow'); t.equal(attribution._editLink.href, 'https://feedback.com/?owner=mapbox&id=streets-v10&access_token=pk.123#/0/0/0', 'edit link contains map location data'); map.setZoom(2); t.equal(attribution._editLink.href, 'https://feedback.com/?owner=mapbox&id=streets-v10&access_token=pk.123#/0/0/2', 'edit link updates on mapmove');