Interactive interface for browsing global, full-resolution satellite imagery
ESLint fixes
Jason Hurley57ce0c446eb7
diff --git a/web/js/containers/animation-widget/kiosk-animation-widget.test.js b/web/js/containers/animation-widget/kiosk-animation-widget.test.jsindex df3783b4b..c48457723 100644--- a/web/js/containers/animation-widget/kiosk-animation-widget.test.js+++ b/web/js/containers/animation-widget/kiosk-animation-widget.test.js@@ -1,5 +1,5 @@/* eslint-disable react/jsx-props-no-spreading */-import { render, screen } from '@testing-library/react';+import { render } from '@testing-library/react';import '@testing-library/jest-dom';jest.mock('../../components/kiosk/util', () => ({diff --git a/web/js/containers/map-interactions/map-interactions.test.js b/web/js/containers/map-interactions/map-interactions.test.jsindex 61d8a222b..cf80735d3 100644--- a/web/js/containers/map-interactions/map-interactions.test.js+++ b/web/js/containers/map-interactions/map-interactions.test.js@@ -219,12 +219,18 @@ describe('MapInteractions mapStateToProps', () => {});test('isNaturalEventsActive is false when config.features.naturalEvents is false', () => {- const result = capturedMapStateToProps(buildState({ naturalEvents: false, eventsActive: true }));+ const result = capturedMapStateToProps(buildState({+ naturalEvents: false,+ eventsActive: true,+ }));expect(result.isNaturalEventsActive).toBe(false);});test('isNaturalEventsActive is false when events.active is false', () => {- const result = capturedMapStateToProps(buildState({ naturalEvents: true, eventsActive: false }));+ const result = capturedMapStateToProps(buildState({+ naturalEvents: true,+ eventsActive: false,+ }));expect(result.isNaturalEventsActive).toBe(false);});});diff --git a/web/js/containers/sidebar/layer-row.test.js b/web/js/containers/sidebar/layer-row.test.jsindex 9c46d4abd..e608b3e23 100644--- a/web/js/containers/sidebar/layer-row.test.js+++ b/web/js/containers/sidebar/layer-row.test.js@@ -733,18 +733,30 @@ describe('Vector layer icon', () => {});it('has disabled class when hasClickableFeature is false', () => {- const { container } = renderComponent({ isVectorLayer: true, isVisible: true, hasClickableFeature: false });+ const { container } = renderComponent({+ isVectorLayer: true,+ isVisible: true,+ hasClickableFeature: false,+ });expect(container.querySelector('.layer-pointer-icon')).toHaveClass('disabled');});it('does not have disabled class when hasClickableFeature is true', () => {- const { container } = renderComponent({ isVectorLayer: true, isVisible: true, hasClickableFeature: true });+ const { container } = renderComponent({+ isVectorLayer: true,+ isVisible: true,+ hasClickableFeature: true,+ });expect(container.querySelector('.layer-pointer-icon')).not.toHaveClass('disabled');});it('calls openVectorAlertModal on click', () => {const openVectorAlertModal = jest.fn();- const { container } = renderComponent({ isVectorLayer: true, isVisible: true, openVectorAlertModal });+ const { container } = renderComponent({+ isVectorLayer: true,+ isVisible: true,+ openVectorAlertModal,+ });fireEvent.click(container.querySelector('.layer-pointer-icon'));expect(openVectorAlertModal).toHaveBeenCalled();});@@ -759,7 +771,11 @@ describe('Chartable layer icon', () => {});it('does not render when isChartingActive', () => {- const { container } = renderComponent({ isChartableLayer: true, isVisible: true, isChartingActive: true });+ const { container } = renderComponent({+ isChartableLayer: true,+ isVisible: true,+ isChartingActive: true,+ });expect(container.querySelector('.layer-chartable-icon')).not.toBeInTheDocument();});@@ -886,7 +902,12 @@ describe('useEffects', () => {it('does not call requestPalette when renderedPalette not empty', () => {const requestPalette = jest.fn();- renderComponent({ hasPalette: true, renderedPalette: { maps: [] }, isLoading: false, requestPalette });+ renderComponent({+ hasPalette: true,+ renderedPalette: { maps: [] },+ isLoading: false,+ requestPalette,+ });expect(requestPalette).not.toHaveBeenCalled();});@@ -937,7 +958,9 @@ describe('mapStateToProps', () => {it('maps isEmbedModeActive from embed', () => {const msp = capturedMakeMapStateToProps();- expect(msp(makeState({ embed: { isEmbedModeActive: true } }), ownProps).isEmbedModeActive).toBe(true);+ expect(msp(makeState({+ embed: { isEmbedModeActive: true },+ }), ownProps).isEmbedModeActive).toBe(true);});it('maps isAnimating from animation.isPlaying', () => {@@ -947,7 +970,9 @@ describe('mapStateToProps', () => {it('maps isDistractionFreeModeActive from ui', () => {const msp = capturedMakeMapStateToProps();- expect(msp(makeState({ ui: { isDistractionFreeModeActive: true } }), ownProps).isDistractionFreeModeActive).toBe(true);+ expect(msp(makeState({+ ui: { isDistractionFreeModeActive: true },+ }), ownProps).isDistractionFreeModeActive).toBe(true);});it('maps ddvZoomAlerts and ddvLocationAlerts', () => {