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/Preferences.spec.js | |
| parent | 7a72cd6f6768716f9c38923cb6a668b81209d617 (diff) | |
| download | mullvadvpn-858c95cdf3bb94ff4e75eb63c8c982520a5fb629.tar.xz mullvadvpn-858c95cdf3bb94ff4e75eb63c8c982520a5fb629.zip | |
Fix tests
Diffstat (limited to 'test/components/Preferences.spec.js')
| -rw-r--r-- | test/components/Preferences.spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/components/Preferences.spec.js b/test/components/Preferences.spec.js index f8c38f9493..51be0dc473 100644 --- a/test/components/Preferences.spec.js +++ b/test/components/Preferences.spec.js @@ -3,12 +3,13 @@ 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({ testName: 'closeButton' }); + const button = component.find(BackBarItem).dive(); expect(button).to.have.length(1); button.simulate('press'); }); |
