This is an error message
, 'danger'); 24 | 25 | expect(wrapper).toMatchSnapshot(); 26 | }); 27 | 28 | it('should render a warning alert', () => { 29 | wrapper = setup('This is a warning message', 'warning'); 30 | 31 | expect(wrapper).toMatchSnapshot(); 32 | }); 33 | 34 | it('should render a info alert', () => { 35 | wrapper = setup('This is an info message', 'info'); 36 | 37 | expect(wrapper).toMatchSnapshot(); 38 | }); 39 | }); 40 | -------------------------------------------------------------------------------- /{{cookiecutter.project_slug}}/frontend/test/components/Background.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import Background from 'components/Background'; 4 | 5 | describe('Background', () => { 6 | const wrapper = mount(