diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-10-14 16:09:57 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2017-10-19 14:16:38 +0200 |
| commit | 688796d784bfcc8a5a6deb4b4d749aafa728499c (patch) | |
| tree | 7f652644862cf0134c7bee09d24d6be36be0a2ff /test | |
| parent | abb86c88dc23096714c58785cc2393585d54ea27 (diff) | |
| download | mullvadvpn-688796d784bfcc8a5a6deb4b4d749aafa728499c.tar.xz mullvadvpn-688796d784bfcc8a5a6deb4b4d749aafa728499c.zip | |
Add test for support item in settings
Diffstat (limited to 'test')
| -rw-r--r-- | test/components/Settings.spec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/components/Settings.spec.js b/test/components/Settings.spec.js index 96b2178fe0..f90d658f9b 100644 --- a/test/components/Settings.spec.js +++ b/test/components/Settings.spec.js @@ -128,6 +128,14 @@ describe('components/Settings', () => { Simulate.click(domNode); }); + it('should call support callback', (done) => { + const props = makeProps(loggedInAccountState, settingsState, { + onViewSupport: () => done() + }); + const domNode = ReactTestUtils.findRenderedDOMComponentWithClass(render(props), 'settings__view-support'); + Simulate.click(domNode); + }); + it('should call external links callback', () => { let collectedExternalLinkTypes: Array<string> = []; const props = makeProps(loggedOutAccountState, settingsState, { |
