blob: 5550c663fef4dd98767d924e7decbb96b6696942 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import React from 'react';
import Footer from '../Footer';
import renderer from 'react-test-renderer';
test('Footer renders correctly with and without sponsors', () => {
const footer = renderer.create(
<Footer />
);
let footerTree = footer.toJSON();
expect(footerTree).toMatchSnapshot();
const sponsoredFooter = renderer.create(
<Footer links='Sponsored footer' />
);
footerTree = sponsoredFooter.toJSON();
expect(footerTree).toMatchSnapshot();
});
|