summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-07-28 08:29:21 +0200
committerErik Larkö <erik@mullvad.net>2017-08-08 14:05:07 +0200
commit696c6b0d3a3f33925f35f7fe3939f246c64c44f9 (patch)
tree088a088f7623b319e07f0cdb26fdbf2057161b4a
parent741faad69303ece4ce5e53f38a92995171dbe1d4 (diff)
downloadmullvadvpn-696c6b0d3a3f33925f35f7fe3939f246c64c44f9.tar.xz
mullvadvpn-696c6b0d3a3f33925f35f7fe3939f246c64c44f9.zip
Use CONNECTED action in tests
-rw-r--r--test/connect.spec.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/connect.spec.js b/test/connect.spec.js
index e2e531e179..9ecedb53a1 100644
--- a/test/connect.spec.js
+++ b/test/connect.spec.js
@@ -30,9 +30,7 @@ describe('connect', () => {
mockIpc.connect = () => new Promise((_, reject) => reject('Some error'));
- store.dispatch(connectionActions.connectionChange({
- status: 'connected',
- }));
+ store.dispatch(connectionActions.connected());
expect(store.getState().connection.status).not.to.equal('disconnected');
@@ -75,9 +73,7 @@ describe('connect', () => {
it('should correctly deduce \'disconnected\' from backend states', () => {
const { store, mockIpc } = setupBackendAndStore();
- store.dispatch(connectionActions.connectionChange({
- status: 'connected',
- }));
+ store.dispatch(connectionActions.connected());
expect(store.getState().connection.status).not.to.equal('disconnected');
mockIpc.sendNewState({ state: 'unsecured', target_state: 'unsecured' });