summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-02-22 14:54:28 -0300
committerAnike Arni <aarni@thoughtworks.com>2017-02-22 15:22:56 -0300
commitd4551f07c44d67231e7cbd841817ff2e7c276932 (patch)
tree9409288636735c0c51af3bf4b5848d6ecf12eb37 /web-ui/test
parent19dc3947d27280a0c3ade87600fcf0558043ae4f (diff)
[#907] Adds unit test for PixelatedWelcome component
with @thaissiqueira
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/unit/login/about/pixelated_welcome.spec.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web-ui/test/unit/login/about/pixelated_welcome.spec.js b/web-ui/test/unit/login/about/pixelated_welcome.spec.js
new file mode 100644
index 00000000..d03cb457
--- /dev/null
+++ b/web-ui/test/unit/login/about/pixelated_welcome.spec.js
@@ -0,0 +1,17 @@
+import { shallow } from 'enzyme';
+import expect from 'expect';
+import React from 'react';
+import { PixelatedWelcome } from 'src/login/about/pixelated_welcome';
+
+describe('PixelatedWelcome', () => {
+ let pixelatedWelcome;
+ const mockTranslations = key => key;
+
+ beforeEach(() => {
+ pixelatedWelcome = shallow(<PixelatedWelcome t={mockTranslations} />);
+ });
+
+ it('renders welcome component', () => {
+ expect(pixelatedWelcome.find('.pixelated-welcome').length).toEqual(1);
+ });
+});