kopia lustrzana https://github.com/OpenDroneMap/WebODM
Fix test
rodzic
5c42d7105a
commit
741a32799f
|
@ -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 = {
|
||||
|
|
|
@ -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);
|
||||
})
|
||||
});
|
Ładowanie…
Reference in New Issue