From 4dfdd65d0fe8b836cdd22ef7bf8e4e1fc447d8ff Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Fri, 10 May 2024 12:23:12 -0500 Subject: [PATCH] test: Tests fixed --- .../LandscapeForm/BoundaryStepNewBoundariesFile.test.js | 1 + .../components/LandscapeForm/BoundaryStepNewDrawPolygon.test.js | 1 + .../components/LandscapeForm/BoundaryStepUpdate.test.js | 1 + .../components/LandscapeSharedDataVisualization.test.js | 1 + src/landscape/components/LandscapeView.test.js | 1 + .../visualization/components/VisualizationConfigForm.test.js | 1 + 6 files changed, 6 insertions(+) diff --git a/src/landscape/components/LandscapeForm/BoundaryStepNewBoundariesFile.test.js b/src/landscape/components/LandscapeForm/BoundaryStepNewBoundariesFile.test.js index 2a215679b9..3db2e07be4 100644 --- a/src/landscape/components/LandscapeForm/BoundaryStepNewBoundariesFile.test.js +++ b/src/landscape/components/LandscapeForm/BoundaryStepNewBoundariesFile.test.js @@ -113,6 +113,7 @@ test('LandscapeNew: Save from GeoJSON', async () => { addControl: jest.fn(), removeControl: jest.fn(), fitBounds: jest.fn(), + getStyle: jest.fn(), off: jest.fn(), getBounds: jest.fn().mockReturnValue({ getSouthWest: jest.fn().mockReturnValue({ diff --git a/src/landscape/components/LandscapeForm/BoundaryStepNewDrawPolygon.test.js b/src/landscape/components/LandscapeForm/BoundaryStepNewDrawPolygon.test.js index e511abb795..d47a3e332e 100644 --- a/src/landscape/components/LandscapeForm/BoundaryStepNewDrawPolygon.test.js +++ b/src/landscape/components/LandscapeForm/BoundaryStepNewDrawPolygon.test.js @@ -103,6 +103,7 @@ test('LandscapeNew: Save form draw polygon boundary', async () => { addControl: jest.fn(), removeControl: jest.fn(), fitBounds: jest.fn(), + getStyle: jest.fn(), off: jest.fn(), getBounds: jest.fn().mockReturnValue({ getSouthWest: jest.fn().mockReturnValue({ diff --git a/src/landscape/components/LandscapeForm/BoundaryStepUpdate.test.js b/src/landscape/components/LandscapeForm/BoundaryStepUpdate.test.js index 7c4bee3e03..3cfef21374 100644 --- a/src/landscape/components/LandscapeForm/BoundaryStepUpdate.test.js +++ b/src/landscape/components/LandscapeForm/BoundaryStepUpdate.test.js @@ -139,6 +139,7 @@ beforeEach(() => { addControl: jest.fn(), removeControl: jest.fn(), fitBounds: jest.fn(), + getStyle: jest.fn(), off: jest.fn(), }; mapboxgl.NavigationControl = jest.fn(); diff --git a/src/landscape/components/LandscapeSharedDataVisualization.test.js b/src/landscape/components/LandscapeSharedDataVisualization.test.js index e635591487..96849042e7 100644 --- a/src/landscape/components/LandscapeSharedDataVisualization.test.js +++ b/src/landscape/components/LandscapeSharedDataVisualization.test.js @@ -102,6 +102,7 @@ test('LandscapeSharedDataVisualization: Display visualization', async () => { addImage: jest.fn(), setTerrain: jest.fn(), fitBounds: jest.fn(), + getStyle: jest.fn(), hasImage: jest.fn(), setPadding: jest.fn(), dragRotate: { disable: jest.fn() }, diff --git a/src/landscape/components/LandscapeView.test.js b/src/landscape/components/LandscapeView.test.js index 6a06b89057..d2667b18d5 100644 --- a/src/landscape/components/LandscapeView.test.js +++ b/src/landscape/components/LandscapeView.test.js @@ -80,6 +80,7 @@ beforeEach(() => { addControl: jest.fn(), removeControl: jest.fn(), fitBounds: jest.fn(), + getStyle: jest.fn(), off: jest.fn(), }; }); diff --git a/src/sharedData/visualization/components/VisualizationConfigForm.test.js b/src/sharedData/visualization/components/VisualizationConfigForm.test.js index 12149f50f7..e988f207d0 100644 --- a/src/sharedData/visualization/components/VisualizationConfigForm.test.js +++ b/src/sharedData/visualization/components/VisualizationConfigForm.test.js @@ -161,6 +161,7 @@ const setup = async testParams => { hasImage: jest.fn(), addImage: jest.fn(), fitBounds: jest.fn(), + getStyle: jest.fn(), getBounds: jest.fn(), setPadding: jest.fn(), dragRotate: { disable: jest.fn() },