From 7a8f6604e77859455d8abab8c46af0a4619a9c60 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 20 Jun 2018 23:08:45 +0300 Subject: add Footer snapshots --- vnext/src/components/__tests__/Footer.test.js | 18 +++ .../__tests__/__snapshots__/Footer.test.js.snap | 175 +++++++++++++++++++++ 2 files changed, 193 insertions(+) create mode 100644 vnext/src/components/__tests__/Footer.test.js create mode 100644 vnext/src/components/__tests__/__snapshots__/Footer.test.js.snap (limited to 'vnext/src/components') diff --git a/vnext/src/components/__tests__/Footer.test.js b/vnext/src/components/__tests__/Footer.test.js new file mode 100644 index 00000000..17461b85 --- /dev/null +++ b/vnext/src/components/__tests__/Footer.test.js @@ -0,0 +1,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( + + ); + let footerTree = footer.toJSON(); + expect(footerTree).toMatchSnapshot(); + + const sponsoredFooter = renderer.create( + + ); + footerTree = sponsoredFooter.toJSON(); + expect(footerTree).toMatchSnapshot(); +}); \ No newline at end of file diff --git a/vnext/src/components/__tests__/__snapshots__/Footer.test.js.snap b/vnext/src/components/__tests__/__snapshots__/Footer.test.js.snap new file mode 100644 index 00000000..23f2deff --- /dev/null +++ b/vnext/src/components/__tests__/__snapshots__/Footer.test.js.snap @@ -0,0 +1,175 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Footer renders correctly with and without sponsors 1`] = ` +
+`; + +exports[`Footer renders correctly with and without sponsors 2`] = ` + +`; -- cgit v1.2.3