diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-18 15:07:37 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-08-15 17:39:38 +0200 |
| commit | 71592249b2dd669b6f24f37bfb7b0f4e43b74998 (patch) | |
| tree | a6097dc7e5d94d06e99c65fdfe160e824395f50c /test/components/Preferences.spec.js | |
| parent | e84e87f4ce5a8c242f756566cdc6fb59a45f7bea (diff) | |
| download | mullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.tar.xz mullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.zip | |
Add workspaces
Diffstat (limited to 'test/components/Preferences.spec.js')
| -rw-r--r-- | test/components/Preferences.spec.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/components/Preferences.spec.js b/test/components/Preferences.spec.js deleted file mode 100644 index 51be0dc473..0000000000 --- a/test/components/Preferences.spec.js +++ /dev/null @@ -1,29 +0,0 @@ -// @flow - -import * as React from 'react'; -import { shallow } from 'enzyme'; -import Preferences from '../../app/components/Preferences'; -import { BackBarItem } from '../../app/components/NavigationBar'; - -describe('components/Preferences', () => { - it('Should call close handler', (done) => { - const props = makeProps({ onClose: done }); - const component = shallow(<Preferences {...props} />); - const button = component.find(BackBarItem).dive(); - expect(button).to.have.length(1); - button.simulate('press'); - }); -}); - -function makeProps(props) { - return { - onClose: () => {}, - setAutoConnect: () => {}, - setAutoStart: (_autoStart) => Promise.resolve(), - getAutoStart: () => false, - setAllowLan: () => {}, - allowAutoConnect: false, - allowLan: false, - ...props, - }; -} |
