aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/__tests__/Footer.test.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-20 23:08:45 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit7a8f6604e77859455d8abab8c46af0a4619a9c60 (patch)
treebaa6895d4966fd98202518a52c09f741c9539bbf /vnext/src/components/__tests__/Footer.test.js
parentc3e791ae2357bbe220c133e3ab417bd5f7c55410 (diff)
add Footer snapshots
Diffstat (limited to 'vnext/src/components/__tests__/Footer.test.js')
-rw-r--r--vnext/src/components/__tests__/Footer.test.js18
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