aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/__tests__/Footer.test.js
diff options
context:
space:
mode:
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