summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-02-15 11:43:58 -0200
committerTulio Casagrande <tcasagra@thoughtworks.com>2017-02-21 13:32:01 -0300
commitd7dbc1dc61f74f7bd74464bda5e4e0051f062352 (patch)
tree918cf306829f768e1cc110d942b32777ac079eb1 /web-ui/test
parentf21558d8ceea177a26096e4922eef02413394058 (diff)
[#907] Translates login page to pt_BR
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/unit/login/app.spec.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web-ui/test/unit/login/app.spec.js b/web-ui/test/unit/login/app.spec.js
new file mode 100644
index 00000000..3b6461cf
--- /dev/null
+++ b/web-ui/test/unit/login/app.spec.js
@@ -0,0 +1,17 @@
+import { shallow } from 'enzyme';
+import expect from 'expect';
+import React from 'react';
+import { App } from 'src/login/app';
+
+describe('App', () => {
+ let app;
+
+ beforeEach(() => {
+ const mockTranslations = key => key;
+ app = shallow(<App t={mockTranslations} />);
+ });
+
+ it('renders login form', () => {
+ expect(app.find('form').props().action).toEqual('/login');
+ });
+});