Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed May 28, 2024
1 parent 5c42d71 commit 741a327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/static/app/js/components/LayersControlAnnotations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
});

0 comments on commit 741a327

Please sign in to comment.