diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-07-22 12:08:22 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-07-22 14:41:43 +0200 |
| commit | befbb4b3aee6b96eb248cdc883a4f42d3901bacc (patch) | |
| tree | 365c04dad43d9de5b6f669e2d5bbf22e48a8b0b8 /gui | |
| parent | d213f90c11d338d6fcdd3c6b186601e9d8129cb9 (diff) | |
| download | mullvadvpn-befbb4b3aee6b96eb248cdc883a4f42d3901bacc.tar.xz mullvadvpn-befbb4b3aee6b96eb248cdc883a4f42d3901bacc.zip | |
Update tests to use RoutePath
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/test/history.spec.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gui/test/history.spec.ts b/gui/test/history.spec.ts index 3087905c7b..2c92e0219e 100644 --- a/gui/test/history.spec.ts +++ b/gui/test/history.spec.ts @@ -1,13 +1,14 @@ import { expect, spy } from 'chai'; import { it, describe, beforeEach } from 'mocha'; import History from '../src/renderer/lib/history'; +import { RoutePath } from '../src/renderer/lib/routes'; -const BASE_PATH = '/'; -const FIRST_PATH = '/first-path'; -const SECOND_PATH = '/second-path'; -const THIRD_PATH = '/third-path'; -const FOURTH_PATH = '/fourth-path'; -const FIFTH_PATH = '/fifth-path'; +const BASE_PATH = RoutePath.launch; +const FIRST_PATH = RoutePath.main; +const SECOND_PATH = RoutePath.settings; +const THIRD_PATH = RoutePath.advancedSettings; +const FOURTH_PATH = RoutePath.wireguardKeys; +const FIFTH_PATH = RoutePath.splitTunneling; describe('History', () => { let history: History; |
