summaryrefslogtreecommitdiff
path: root/web-ui/test/unit/login/error/auth_error.spec.js
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-02-21 13:51:41 -0300
committerAnike Arni <aarni@thoughtworks.com>2017-02-22 15:22:55 -0300
commitf7bd078bcce2d6cad419fceb55ab71415cda4d33 (patch)
tree918de20bb17925912d0c9ed8bb053d7aa8a3826f /web-ui/test/unit/login/error/auth_error.spec.js
parent92c6a9dbc39318df48b4b3d5fae1a3888f201343 (diff)
[#907] Display error message for mobile version
with @anikarni
Diffstat (limited to 'web-ui/test/unit/login/error/auth_error.spec.js')
-rw-r--r--web-ui/test/unit/login/error/auth_error.spec.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web-ui/test/unit/login/error/auth_error.spec.js b/web-ui/test/unit/login/error/auth_error.spec.js
new file mode 100644
index 00000000..55d8920f
--- /dev/null
+++ b/web-ui/test/unit/login/error/auth_error.spec.js
@@ -0,0 +1,17 @@
+import { shallow } from 'enzyme';
+import expect from 'expect';
+import React from 'react';
+import { AuthError } from 'src/login/error/auth_error';
+
+describe('AuthError', () => {
+ let authError;
+ const mockTranslations = key => key;
+
+ beforeEach(() => {
+ authError = shallow(<AuthError t={mockTranslations} />);
+ });
+
+ it('renders error message', () => {
+ expect(authError.find('.auth-error').length).toEqual(1);
+ });
+});