Skip to content

Commit

Permalink
test: Tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed May 10, 2024
1 parent 8b18b38 commit 4dfdd65
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ beforeEach(() => {
addControl: jest.fn(),
removeControl: jest.fn(),
fitBounds: jest.fn(),
getStyle: jest.fn(),
off: jest.fn(),
};
mapboxgl.NavigationControl = jest.fn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() },
Expand Down
1 change: 1 addition & 0 deletions src/landscape/components/LandscapeView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ beforeEach(() => {
addControl: jest.fn(),
removeControl: jest.fn(),
fitBounds: jest.fn(),
getStyle: jest.fn(),
off: jest.fn(),
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() },
Expand Down

0 comments on commit 4dfdd65

Please sign in to comment.