diff options
author | Vitaly Takmazov | 2018-08-24 14:32:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 5058486e30230f3a011556ccf2989fbb264add56 (patch) | |
tree | dc4e56e13eccc021572cb13eb5945d73f04cf78d /vnext/src | |
parent | b53b8983113db64d4796d111e5068457d2eac625 (diff) |
drop Footer snapshot
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/components/__tests__/Footer.test.js | 18 | ||||
-rw-r--r-- | vnext/src/components/__tests__/__snapshots__/Footer.test.js.snap | 175 |
2 files changed, 0 insertions, 193 deletions
diff --git a/vnext/src/components/__tests__/Footer.test.js b/vnext/src/components/__tests__/Footer.test.js deleted file mode 100644 index 5550c663..00000000 --- a/vnext/src/components/__tests__/Footer.test.js +++ /dev/null @@ -1,18 +0,0 @@ -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(); -}); diff --git a/vnext/src/components/__tests__/__snapshots__/Footer.test.js.snap b/vnext/src/components/__tests__/__snapshots__/Footer.test.js.snap deleted file mode 100644 index 23f2deff..00000000 --- a/vnext/src/components/__tests__/__snapshots__/Footer.test.js.snap +++ /dev/null @@ -1,175 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Footer renders correctly with and without sponsors 1`] = ` -<div - id="footer" -> - <div - id="footer-right" - > - · - <a - href="/help/contacts" - rel="nofollow" - > - Contacts - </a> - · - <a - href="/help/tos" - rel="nofollow" - > - TOS - </a> - </div> - <div - id="footer-social" - > - <a - href="https://twitter.com/Juick" - rel="nofollow" - > - <div - className="icon icon--ei-sc-twitter icon--m" - > - <svg - className="icon__cnt" - dangerouslySetInnerHTML={ - Object { - "__html": "<use xlink:href=#ei-sc-twitter-icon />", - } - } - /> - </div> - </a> - <a - href="https://vk.com/juick" - rel="nofollow" - > - <div - className="icon icon--ei-sc-vk icon--m" - > - <svg - className="icon__cnt" - dangerouslySetInnerHTML={ - Object { - "__html": "<use xlink:href=#ei-sc-vk-icon />", - } - } - /> - </div> - </a> - <a - href="https://www.facebook.com/JuickCom" - rel="nofollow" - > - <div - className="icon icon--ei-sc-facebook icon--m" - > - <svg - className="icon__cnt" - dangerouslySetInnerHTML={ - Object { - "__html": "<use xlink:href=#ei-sc-facebook-icon />", - } - } - /> - </div> - </a> - </div> - <div - id="footer-left" - > - juick.com © 2008-2018 - </div> -</div> -`; - -exports[`Footer renders correctly with and without sponsors 2`] = ` -<div - id="footer" -> - <div - id="footer-right" - > - · - <a - href="/help/contacts" - rel="nofollow" - > - Contacts - </a> - · - <a - href="/help/tos" - rel="nofollow" - > - TOS - </a> - </div> - <div - id="footer-social" - > - <a - href="https://twitter.com/Juick" - rel="nofollow" - > - <div - className="icon icon--ei-sc-twitter icon--m" - > - <svg - className="icon__cnt" - dangerouslySetInnerHTML={ - Object { - "__html": "<use xlink:href=#ei-sc-twitter-icon />", - } - } - /> - </div> - </a> - <a - href="https://vk.com/juick" - rel="nofollow" - > - <div - className="icon icon--ei-sc-vk icon--m" - > - <svg - className="icon__cnt" - dangerouslySetInnerHTML={ - Object { - "__html": "<use xlink:href=#ei-sc-vk-icon />", - } - } - /> - </div> - </a> - <a - href="https://www.facebook.com/JuickCom" - rel="nofollow" - > - <div - className="icon icon--ei-sc-facebook icon--m" - > - <svg - className="icon__cnt" - dangerouslySetInnerHTML={ - Object { - "__html": "<use xlink:href=#ei-sc-facebook-icon />", - } - } - /> - </div> - </a> - </div> - <div - id="footer-left" - > - juick.com © 2008-2018 - </div> - <div> - Sponsors: - Sponsored footer - </div> -</div> -`; |