diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-08-01 14:21:58 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-08-08 15:26:34 +0200 |
| commit | 2f6e76531419c0653212410dc992bf952ee5fbe5 (patch) | |
| tree | 43e2eae17b1ae61da6a05a2e333b88cc6060b2ee /test/components/Connect.spec.js | |
| parent | 21c62239a0ef590e77f3a5a3448f36259755d6d8 (diff) | |
| download | mullvadvpn-2f6e76531419c0653212410dc992bf952ee5fbe5.tar.xz mullvadvpn-2f6e76531419c0653212410dc992bf952ee5fbe5.zip | |
Pull account expiry on demand
Diffstat (limited to 'test/components/Connect.spec.js')
| -rw-r--r-- | test/components/Connect.spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/components/Connect.spec.js b/test/components/Connect.spec.js index d21a8eb510..67dae303d8 100644 --- a/test/components/Connect.spec.js +++ b/test/components/Connect.spec.js @@ -5,7 +5,7 @@ import { shallow } from 'enzyme'; import Connect from '../../app/components/Connect'; -import type { ConnectProps } from '../../app/components/Connect'; +type ConnectProps = React.ElementProps<typeof Connect>; describe('components/Connect', () => { it('shows unsecured hints when disconnected', () => { @@ -125,6 +125,7 @@ const defaultProps: ConnectProps = { country: null, city: null, }, + updateAccountExpiry: () => Promise.resolve(), }; function renderWithProps(customProps: $Shape<ConnectProps>) { |
