From 741a32799f91a0bbc38b234201eabb71d9bfbecc Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 28 May 2024 14:17:49 -0400 Subject: [PATCH] Fix test --- app/static/app/js/components/LayersControlAnnotations.jsx | 3 ++- .../app/js/components/tests/LayersControlAnnotations.test.jsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/static/app/js/components/LayersControlAnnotations.jsx b/app/static/app/js/components/LayersControlAnnotations.jsx index a6835b75a..3d0bc6018 100644 --- a/app/static/app/js/components/LayersControlAnnotations.jsx +++ b/app/static/app/js/components/LayersControlAnnotations.jsx @@ -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 = { diff --git a/app/static/app/js/components/tests/LayersControlAnnotations.test.jsx b/app/static/app/js/components/tests/LayersControlAnnotations.test.jsx index dee77c97d..4df58e9ad 100644 --- a/app/static/app/js/components/tests/LayersControlAnnotations.test.jsx +++ b/app/static/app/js/components/tests/LayersControlAnnotations.test.jsx @@ -4,7 +4,7 @@ import LayersControlAnnotations from '../LayersControlAnnotations'; describe('', () => { it('renders without exploding', () => { - const wrapper = mount(); + const wrapper = mount(); expect(wrapper.exists()).toBe(true); }) }); \ No newline at end of file