@ugrc/layer-selector
Version:
This is a react component for adding a quick base map selector with a happy path for using [UGRC's Discover Service](https://gis.utah.gov/discover).
22 lines (20 loc) • 564 B
JSX
import { render } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import LayerSelector from './';
describe('LayerSelector tests', () => {
it('LayerSelector snapshot', () => {
const props = {
view: {
map: {},
when: () => {},
ui: {
add: () => {},
},
},
baseLayers: ['Lite', 'Terrain', 'Topo', 'Color IR'],
quadWord: 'my-fake-quad-word',
};
const { asFragment } = render(<LayerSelector {...props} />);
expect(asFragment()).toMatchSnapshot();
});
});