blob: f1247233525f2fe1e164a8f9f7a135acc8996906 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { shallow } from 'enzyme';
import expect from 'expect';
import React from 'react';
import { Footer } from 'src/common/footer/footer';
describe('Footer', () => {
let footer;
beforeEach(() => {
const mockTranslations = key => key;
footer = shallow(<Footer t={mockTranslations} />);
});
it('renders the footer content', () => {
expect(footer.find('footer').text()).toContain('footer-text');
});
});
|