diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-01 16:13:10 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-06-05 12:11:55 +0200 |
| commit | ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087 (patch) | |
| tree | b1f7754eb50896ab3681e35fa4e08be642b940c9 /test/components/Connect.spec.js | |
| parent | 5852c980980de53e00d76a0bdb4b41bf5c0f5b39 (diff) | |
| download | mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.tar.xz mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.zip | |
Add formatted source code
Diffstat (limited to 'test/components/Connect.spec.js')
| -rw-r--r-- | test/components/Connect.spec.js | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/components/Connect.spec.js b/test/components/Connect.spec.js index 59079082c5..64771248b6 100644 --- a/test/components/Connect.spec.js +++ b/test/components/Connect.spec.js @@ -9,13 +9,12 @@ import Connect from '../../app/components/Connect'; import type { ConnectProps } from '../../app/components/Connect'; describe('components/Connect', () => { - it('shows unsecured hints when disconnected', () => { const component = renderWithProps({ connection: { ...defaultProps.connection, status: 'disconnected', - } + }, }); const header = getComponent(component, 'header'); @@ -31,7 +30,7 @@ describe('components/Connect', () => { connection: { ...defaultProps.connection, status: 'connected', - } + }, }); const header = getComponent(component, 'header'); @@ -49,7 +48,7 @@ describe('components/Connect', () => { status: 'connecting', country: 'Norway', city: 'Oslo', - } + }, }); const countryAndCity = getComponent(component, 'location'); const ipAddr = getComponent(component, 'ipAddress'); @@ -67,7 +66,7 @@ describe('components/Connect', () => { country: 'Norway', city: 'Oslo', ip: '4.3.2.1', - } + }, }); const countryAndCity = getComponent(component, 'location'); const ipAddr = getComponent(component, 'ipAddress'); @@ -85,7 +84,7 @@ describe('components/Connect', () => { country: 'Norway', city: 'Oslo', ip: '4.3.2.1', - } + }, }); const countryAndCity = getComponent(component, 'location'); const ipAddr = getComponent(component, 'ipAddress'); @@ -101,7 +100,7 @@ describe('components/Connect', () => { connection: { ...defaultProps.connection, status: 'disconnected', - } + }, }); const connectButton = getComponent(component, 'secureConnection'); @@ -131,9 +130,9 @@ const defaultProps: ConnectProps = { function renderWithProps(customProps: $Shape<ConnectProps>) { const props = { ...defaultProps, ...customProps }; - return shallow( <Connect { ...props } /> ); + return shallow(<Connect {...props} />); } function getComponent(container, testName) { - return container.findWhere( n => n.prop('testName') === testName); -}
\ No newline at end of file + return container.findWhere((n) => n.prop('testName') === testName); +} |
