From: Eduardo San Martin Morote Date: Fri, 23 Oct 2020 08:58:48 +0000 (+0200) Subject: test(e2e): ensure initial value X-Git-Tag: v4.0.0-rc.1~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b318e06d01c549234dcca39b5a6931d6957d1b6;p=thirdparty%2Fvuejs%2Frouter.git test(e2e): ensure initial value --- diff --git a/e2e/modal/index.ts b/e2e/modal/index.ts index f2e11fa9..2987cc66 100644 --- a/e2e/modal/index.ts +++ b/e2e/modal/index.ts @@ -16,7 +16,7 @@ const users = readonly([ { name: 'James' }, ]) -const historyState = ref(history.state) +const historyState = ref(history.state || {}) async function showUserModal(id: number) { // add backgroundView state to the location so we can render a different view from the one