blob: 17461b851be622af24de4371803d5a388efdf29f (
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();
});
|