summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+ });
+});