add basic test for background wrapper component

This commit is contained in:
Jake McDermott 2019-01-04 15:04:17 -05:00
parent 95861491cb
commit b69522b5aa
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7

View File

@ -0,0 +1,14 @@
import React from 'react';
import { mount } from 'enzyme';
import { I18nProvider } from '@lingui/react';
import Background from '../../src/components/Background';
describe('Background', () => {
test('renders the expected content', () => {
const wrapper = mount(<Background><div id="test"/></Background>);
expect(wrapper).toHaveLength(1);
expect(wrapper.find('BackgroundImage')).toHaveLength(1);
expect(wrapper.find('#test')).toHaveLength(1);
});
});