diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-23 16:29:19 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-23 16:29:19 +0200 |
| commit | 858c95cdf3bb94ff4e75eb63c8c982520a5fb629 (patch) | |
| tree | 850e39a41014918b89189be2c62283b78c099161 /test/components/Login.spec.js | |
| parent | 7a72cd6f6768716f9c38923cb6a668b81209d617 (diff) | |
| download | mullvadvpn-858c95cdf3bb94ff4e75eb63c8c982520a5fb629.tar.xz mullvadvpn-858c95cdf3bb94ff4e75eb63c8c982520a5fb629.zip | |
Fix tests
Diffstat (limited to 'test/components/Login.spec.js')
| -rw-r--r-- | test/components/Login.spec.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/components/Login.spec.js b/test/components/Login.spec.js index 76acbd6330..0db789c55d 100644 --- a/test/components/Login.spec.js +++ b/test/components/Login.spec.js @@ -59,7 +59,8 @@ describe('components/Login', () => { }, }); - click(getComponent(component, 'account-input-button')); + const accountInputButton = getComponent(component, 'account-input-button'); + accountInputButton.simulate('press'); }); }); @@ -79,7 +80,3 @@ const defaultProps = { function getComponent(container, testName) { return container.findWhere((n) => n.prop('testName') === testName); } - -function click(component) { - component.prop('onPress')(); -} |
