summaryrefslogtreecommitdiffhomepage
path: root/test/components/Preferences.spec.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-01 16:13:10 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-06-05 12:11:55 +0200
commitca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087 (patch)
treeb1f7754eb50896ab3681e35fa4e08be642b940c9 /test/components/Preferences.spec.js
parent5852c980980de53e00d76a0bdb4b41bf5c0f5b39 (diff)
downloadmullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.tar.xz
mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.zip
Add formatted source code
Diffstat (limited to 'test/components/Preferences.spec.js')
-rw-r--r--test/components/Preferences.spec.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/components/Preferences.spec.js b/test/components/Preferences.spec.js
index cad039df32..833a123538 100644
--- a/test/components/Preferences.spec.js
+++ b/test/components/Preferences.spec.js
@@ -8,15 +8,13 @@ import Preferences from '../../app/components/Preferences';
require('../setup/enzyme');
describe('components/Preferences', () => {
-
it('Should call close handler', (done) => {
const props = makeProps({ onClose: done });
- const component = shallow(<Preferences { ...props } />);
+ const component = shallow(<Preferences {...props} />);
const button = component.find({ testName: 'closeButton' });
expect(button).to.have.length(1);
button.simulate('press');
});
-
});
function makeProps(props) {
@@ -24,6 +22,6 @@ function makeProps(props) {
onClose: () => {},
onChangeAllowLan: () => {},
allowLan: false,
- ...props
+ ...props,
};
}