diff options
author | Vitaly Takmazov | 2018-06-20 23:08:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 7a8f6604e77859455d8abab8c46af0a4619a9c60 (patch) | |
tree | baa6895d4966fd98202518a52c09f741c9539bbf /vnext/src/components/__tests__/Footer.test.js | |
parent | c3e791ae2357bbe220c133e3ab417bd5f7c55410 (diff) |
add Footer snapshots
Diffstat (limited to 'vnext/src/components/__tests__/Footer.test.js')
-rw-r--r-- | vnext/src/components/__tests__/Footer.test.js | 18 |
1 files changed, 18 insertions, 0 deletions
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( + <Footer /> + ); + let footerTree = footer.toJSON(); + expect(footerTree).toMatchSnapshot(); + + const sponsoredFooter = renderer.create( + <Footer links='Sponsored footer' /> + ); + footerTree = sponsoredFooter.toJSON(); + expect(footerTree).toMatchSnapshot(); +});
\ No newline at end of file |