summaryrefslogtreecommitdiff
path: root/web-ui/test/unit/login
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/unit/login')
-rw-r--r--web-ui/test/unit/login/about/pixelated_welcome.spec.js17
-rw-r--r--web-ui/test/unit/login/about/welcome.spec.js17
-rw-r--r--web-ui/test/unit/login/page.spec.js6
3 files changed, 20 insertions, 20 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
deleted file mode 100644
index d03cb457..00000000
--- a/web-ui/test/unit/login/about/pixelated_welcome.spec.js
+++ /dev/null
@@ -1,17 +0,0 @@
-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);
- });
-});
diff --git a/web-ui/test/unit/login/about/welcome.spec.js b/web-ui/test/unit/login/about/welcome.spec.js
new file mode 100644
index 00000000..3e190c0c
--- /dev/null
+++ b/web-ui/test/unit/login/about/welcome.spec.js
@@ -0,0 +1,17 @@
+import { shallow } from 'enzyme';
+import expect from 'expect';
+import React from 'react';
+import { Welcome } from 'src/login/about/welcome';
+
+describe('Welcome', () => {
+ let welcome;
+ const mockTranslations = key => key;
+
+ beforeEach(() => {
+ welcome = shallow(<Welcome t={mockTranslations} />);
+ });
+
+ it('renders welcome component', () => {
+ expect(welcome.find('.welcome').length).toEqual(1);
+ });
+});
diff --git a/web-ui/test/unit/login/page.spec.js b/web-ui/test/unit/login/page.spec.js
index b4063222..0fe6f729 100644
--- a/web-ui/test/unit/login/page.spec.js
+++ b/web-ui/test/unit/login/page.spec.js
@@ -4,7 +4,7 @@ import React from 'react';
import { Page } from 'src/login/page';
import AuthError from 'src/login/error/auth_error';
import GenericError from 'src/login/error/generic_error';
-import PixelatedWelcome from 'src/login/about/pixelated_welcome';
+import Welcome from 'src/login/about/welcome';
describe('Page', () => {
let page;
@@ -17,7 +17,7 @@ describe('Page', () => {
it('renders welcome message when no error', () => {
page = shallow(<Page t={mockTranslations} />);
- expect(page.find(PixelatedWelcome).length).toEqual(1);
+ expect(page.find(Welcome).length).toEqual(1);
});
it('renders auth error message', () => {
@@ -32,7 +32,7 @@ describe('Page', () => {
it('does not render welcome message when error', () => {
page = shallow(<Page t={mockTranslations} error />);
- expect(page.find(PixelatedWelcome).length).toEqual(0);
+ expect(page.find(Welcome).length).toEqual(0);
});
it('does not render error message', () => {