Skip to content

Commit

Permalink
Remove unused file, also remove Maxar Premium from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Sep 11, 2024
1 parent 3b23fa6 commit 45d6513
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion frontend/patch/imagery.min.json

This file was deleted.

9 changes: 0 additions & 9 deletions frontend/src/components/taskSelection/tests/imagery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,6 @@ describe('Imagery', () => {
expect(screen.queryByRole('img')).not.toBeInTheDocument();
});

it('with a Maxar-Premium layer', () => {
render(
<IntlProviders>
<Imagery value={'Maxar-Premium'} />
</IntlProviders>,
);
expect(screen.getByText('Maxar Premium')).toBeInTheDocument();
expect(screen.queryByRole('img')).not.toBeInTheDocument();
});

it('with a Maxar-Standard layer', () => {
render(
Expand Down
1 change: 0 additions & 1 deletion frontend/src/hooks/UseImageryOption.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const IMAGERY_OPTIONS = [
{ label: 'Mapbox Satellite', value: 'Mapbox' },
{ label: 'ESRI World Imagery', value: 'EsriWorldImagery' },
{ label: 'ESRI World Imagery (Clarity) Beta', value: 'EsriWorldImageryClarity' },
{ label: 'Maxar Premium', value: 'Maxar-Premium' },
{ label: 'Maxar Standard', value: 'Maxar-Standard' },
{ label: 'Custom', value: 'custom' },
];
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/hooks/tests/UseImageryOption.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ describe('useImageryOption', () => {
const { result } = renderHook(() => useImageryOption('Bing'));
expect(result.current).toEqual({ label: 'Bing', value: 'Bing' });
});
it('with Maxar-Premium', () => {
const { result } = renderHook(() => useImageryOption('Maxar-Premium'));
expect(result.current).toEqual({ label: 'Maxar Premium', value: 'Maxar-Premium' });
});
it('with EsriWorldImagery', () => {
const { result } = renderHook(() => useImageryOption('EsriWorldImagery'));
expect(result.current).toEqual({ label: 'ESRI World Imagery', value: 'EsriWorldImagery' });
Expand Down

0 comments on commit 45d6513

Please sign in to comment.