summaryrefslogtreecommitdiff
path: root/web-ui/test/unit/common/footer
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-02-08 16:05:44 -0200
committerAnike Arni <aarni@thoughtworks.com>2017-02-08 17:46:43 -0200
commitad7ad7c7f781706b25b29c80c642006a4d18411a (patch)
treebd634c07b72080b91ea0507827cf04c4f3a73553 /web-ui/test/unit/common/footer
parent0d4cf4ad3a5da62f65730d6c3e3665fc12d72590 (diff)
[#922] Create footer
with @tayanefernandes
Diffstat (limited to 'web-ui/test/unit/common/footer')
-rw-r--r--web-ui/test/unit/common/footer/footer.spec.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web-ui/test/unit/common/footer/footer.spec.js b/web-ui/test/unit/common/footer/footer.spec.js
new file mode 100644
index 00000000..f1247233
--- /dev/null
+++ b/web-ui/test/unit/common/footer/footer.spec.js
@@ -0,0 +1,17 @@
+import { shallow } from 'enzyme';
+import expect from 'expect';
+import React from 'react';
+import { Footer } from 'src/common/footer/footer';
+
+describe('Footer', () => {
+ let footer;
+
+ beforeEach(() => {
+ const mockTranslations = key => key;
+ footer = shallow(<Footer t={mockTranslations} />);
+ });
+
+ it('renders the footer content', () => {
+ expect(footer.find('footer').text()).toContain('footer-text');
+ });
+});