Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
snapshots updated
  • Loading branch information
KjartanE committed Oct 31, 2022
commit 9a18a165e7d9573f4a6ba67a3cce2431ca3a8732
13 changes: 0 additions & 13 deletions app/src/components/map/MapContainer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,6 @@ describe('MapContainer', () => {
expect(asFragment()).toMatchSnapshot();
});

test('draws a marker successfully on the map and updates the geometry', () => {
const { getByText, getByRole } = render(
<MapContainer mapId="myMap" classes={classes} drawControls={{ initialFeatures }} onDrawChange={onDrawChange} />
);

fireEvent.click(getByText('Draw a marker'));

// Click on existing geometry on map to place a marker in that location
fireEvent.click(getByRole('presentation'));

expect(onDrawChange).toHaveBeenCalled();
});

test('sets the bounds of the geo being passed in successfully', () => {
const bboxCoords = bbox(initialFeatures[0]);
const bounds: LatLngBoundsExpression = [
Expand Down
Loading