From 59297014196ce9645d1a408c4c879a4aa45e5737 Mon Sep 17 00:00:00 2001 From: Karim Naaji Date: Tue, 5 Jan 2021 13:56:15 -0800 Subject: [PATCH] Fix lint --- test/unit/style/style.test.js | 37 +++++++++++++++---------------- test/unit/terrain/terrain.test.js | 4 ++-- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/test/unit/style/style.test.js b/test/unit/style/style.test.js index 9c71390f423..7fa9f52c686 100644 --- a/test/unit/style/style.test.js +++ b/test/unit/style/style.test.js @@ -1815,25 +1815,24 @@ test('Style#hasLayer, Style#hasLayerType', (t) => { "geojson": createGeoJSONSource() }, "layers": [{ - "id": "symbol_id", - "type": "symbol", - "source": "geojson" - }, - { - "id": "background_id", - "type": "background" - }, - { - "id": "fill_id", - "type": "fill", - "source": "geojson" - }, - { - "id": "line_id", - "type": "line", - "source": "geojson" - } - ] + "id": "symbol_id", + "type": "symbol", + "source": "geojson" + }, + { + "id": "background_id", + "type": "background" + }, + { + "id": "fill_id", + "type": "fill", + "source": "geojson" + }, + { + "id": "line_id", + "type": "line", + "source": "geojson" + }] }); return style; } diff --git a/test/unit/terrain/terrain.test.js b/test/unit/terrain/terrain.test.js index 1283b59fe2c..f79e2835eef 100644 --- a/test/unit/terrain/terrain.test.js +++ b/test/unit/terrain/terrain.test.js @@ -777,7 +777,7 @@ test('Render cache efficiency', (t) => { }, geojson: { type: 'geojson', - data: { + data: { type: 'Point', coordinates: [ 0, @@ -810,7 +810,7 @@ test('Render cache efficiency', (t) => { // Stub console.warn to prevent test fail const warn = console.warn; - console.warn = (warning) => {}; + console.warn = (_) => {}; t.test('Cache efficiency 1', (t) => { map.addLayer({