diff --git a/src/components/__tests__/Footer.js b/src/components/__tests__/Footer.js new file mode 100644 index 000000000..384d631dc --- /dev/null +++ b/src/components/__tests__/Footer.js @@ -0,0 +1,16 @@ +import React from 'react'; +import renderer from 'react-test-renderer'; + +import Footer from '../Footer'; + +describe('Footer', () => { + it('renders correctly', () => { + const pages = [ + { displayName: 'One', url: '/one' }, + { displayName: 'Two', url: '/two' }, + ]; + const tree = renderer.create().toJSON(); + + expect(tree).toMatchSnapshot(); + }); +}); diff --git a/src/components/__tests__/__snapshots__/Footer.js.snap b/src/components/__tests__/__snapshots__/Footer.js.snap new file mode 100644 index 000000000..87ee77f91 --- /dev/null +++ b/src/components/__tests__/__snapshots__/Footer.js.snap @@ -0,0 +1,32 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Footer renders correctly 1`] = ` + +`;