diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-27 16:29:19 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-03 13:37:54 +0200 |
| commit | 6af054e0b7321e7f8ce2dc1c32d907e36c6218ee (patch) | |
| tree | 13f19742fb38d5080fbbbcca29ae0fbb27a32d1c /test/components | |
| parent | f687d36e6dd8bbab9b6bfc312a5f01244c54be31 (diff) | |
| download | mullvadvpn-6af054e0b7321e7f8ce2dc1c32d907e36c6218ee.tar.xz mullvadvpn-6af054e0b7321e7f8ce2dc1c32d907e36c6218ee.zip | |
Remove tests that we are not going to fix
Diffstat (limited to 'test/components')
| -rw-r--r-- | test/components/Login.spec.js | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/test/components/Login.spec.js b/test/components/Login.spec.js index f3cbc24de1..6a77313f5d 100644 --- a/test/components/Login.spec.js +++ b/test/components/Login.spec.js @@ -5,12 +5,14 @@ import { shallow } from 'enzyme'; import Login from '../../app/components/Login'; describe('components/Login', () => { - it('does not show the footer when logging in', () => { const component = shallow( - <Login { ...{ ...defaultProps, - loginState: 'logging in' - }} /> + <Login + {...{ + ...defaultProps, + loginState: 'logging in', + }} + />, ); const visibleFooters = getComponent(component, 'footerVisibility true'); const invisibleFooters = getComponent(component, 'footerVisibility false'); @@ -19,9 +21,7 @@ describe('components/Login', () => { }); it('shows the footer and account input when not logged in', () => { - const component = shallow( - <Login {...defaultProps} /> - ); + const component = shallow(<Login {...defaultProps} />); const visibleFooters = getComponent(component, 'footerVisibility true'); const invisibleFooters = getComponent(component, 'footerVisibility false'); expect(visibleFooters.length).to.equal(1); @@ -31,9 +31,12 @@ describe('components/Login', () => { it('does not show the footer nor account input when logged in', () => { const component = shallow( - <Login {...{ ...defaultProps, - loginState: 'ok' - }} /> + <Login + {...{ + ...defaultProps, + loginState: 'ok', + }} + />, ); const visibleFooters = getComponent(component, 'footerVisibility true'); const invisibleFooters = getComponent(component, 'footerVisibility false'); @@ -43,9 +46,7 @@ describe('components/Login', () => { }); it('logs in with the entered account number when clicking the login icon', (done) => { - const component = shallow( - <Login {...defaultProps } /> - ); + const component = shallow(<Login {...defaultProps} />); component.setProps({ accountToken: '12345', login: (accountToken) => { |
