pull/1504/head
Piero Toffanin 2024-05-28 14:17:49 -04:00
rodzic 5c42d7105a
commit 741a32799f
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -79,7 +79,8 @@ class AnnotationLayer extends React.Component{
export default class LayersControlAnnotations extends React.Component {
static defaultProps = {
expanded: true,
visible: true
visible: true,
layers: []
};
static propTypes = {

Wyświetl plik

@ -4,7 +4,7 @@ import LayersControlAnnotations from '../LayersControlAnnotations';
describe('<LayersControlAnnotations />', () => {
it('renders without exploding', () => {
const wrapper = mount(<LayersControlAnnotations />);
const wrapper = mount(<LayersControlAnnotations layers={[]} />);
expect(wrapper.exists()).toBe(true);
})
});