diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-01-11 16:26:51 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-01-15 16:21:31 +0100 |
| commit | 4aff36938c33443a2834acf8df1c515af8b4d558 (patch) | |
| tree | e166f61a48463d8d445e62b59f6c83ee126eeae8 | |
| parent | 928615a5a91ef4a3f52fbd4a6629e86993a1a3aa (diff) | |
| download | mullvadvpn-4aff36938c33443a2834acf8df1c515af8b4d558.tar.xz mullvadvpn-4aff36938c33443a2834acf8df1c515af8b4d558.zip | |
Remove strange test
| -rw-r--r-- | test/connection-info.spec.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/connection-info.spec.js b/test/connection-info.spec.js deleted file mode 100644 index 875825054f..0000000000 --- a/test/connection-info.spec.js +++ /dev/null @@ -1,37 +0,0 @@ -// @flow - -import { expect } from 'chai'; -import { createMemoryHistory } from 'history'; -import configureStore from '../app/redux/store'; -import connectionActions from '../app/redux/connection/actions'; - -describe('The connection state', () => { - - it('should contain the latest location', () => { - const store = createStore(); - - const firstLoc = { - location: [1, 2], - city: 'a', - country: 'b', - }; - const secondLoc = { - location: [3, 4], - city: 'c', - country: 'd', - }; - - store.dispatch(connectionActions.newLocation(firstLoc)); - store.dispatch(connectionActions.newLocation(secondLoc)); - - const { location, city, country } = store.getState().connection; - expect(location).to.equal(secondLoc.location); - expect(city).to.equal(secondLoc.city); - expect(country).to.equal(secondLoc.country); - }); -}); - -function createStore() { - const memoryHistory = createMemoryHistory(); - return configureStore(null, memoryHistory); -} |
