summaryrefslogtreecommitdiffhomepage
path: root/gui/test
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-11-24 18:13:42 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-11-28 17:09:52 +0100
commit1de7b90fc7fefb137849b5404db2c30241bcffde (patch)
tree1fc91e479aa266893e19fa73af564a794a5d1b0a /gui/test
parent10142a6a52768c374d62c99addcd80d5a07f44b9 (diff)
downloadmullvadvpn-1de7b90fc7fefb137849b5404db2c30241bcffde.tar.xz
mullvadvpn-1de7b90fc7fefb137849b5404db2c30241bcffde.zip
Add transition to location state
Diffstat (limited to 'gui/test')
-rw-r--r--gui/test/unit/history.spec.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/test/unit/history.spec.ts b/gui/test/unit/history.spec.ts
index e59a2bee45..03eabd80cc 100644
--- a/gui/test/unit/history.spec.ts
+++ b/gui/test/unit/history.spec.ts
@@ -58,7 +58,7 @@ describe('History', () => {
});
it('should go backward to base path', () => {
- history.dismiss(true);
+ history.pop(true);
expect(history.location.pathname).to.equal(BASE_PATH);
expect(history.length).to.equal(1);
});
@@ -77,7 +77,7 @@ describe('History', () => {
const listenerB = spy();
history.listen(listenerB);
- history.dismiss(true);
+ history.pop(true);
history.push(FIRST_PATH);
expect(listenerA).to.have.been.called.exactly(4);
@@ -92,7 +92,7 @@ describe('History', () => {
const listenerB = spy();
history.listen(listenerB);
- history.dismiss(true);
+ history.pop(true);
removeListenerA();
history.push(FIRST_PATH);