diff options
Diffstat (limited to 'spec/frontend/design_management/components/image_spec.js')
-rw-r--r-- | spec/frontend/design_management/components/image_spec.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/frontend/design_management/components/image_spec.js b/spec/frontend/design_management/components/image_spec.js index 8163cb0d87a..95d2ad504de 100644 --- a/spec/frontend/design_management/components/image_spec.js +++ b/spec/frontend/design_management/components/image_spec.js @@ -42,6 +42,16 @@ describe('Design management large image component', () => { expect(wrapper.element).toMatchSnapshot(); }); + it('renders SVG with proper height and width', () => { + createComponent({ + isLoading: false, + image: 'mockImage.svg', + name: 'test', + }); + + expect(wrapper.element).toMatchSnapshot(); + }); + it('sets correct classes and styles if imageStyle is set', async () => { createComponent( { |