From 739243c8126c4e1fadf31bc7e3c82d5ba05e188f Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 3 Apr 2020 11:38:15 +0200 Subject: [PATCH] test(e2e): allow window.r --- e2e/encoding/index.ts | 1 + e2e/index.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/e2e/encoding/index.ts b/e2e/encoding/index.ts index a63ccebc..a442d06f 100644 --- a/e2e/encoding/index.ts +++ b/e2e/encoding/index.ts @@ -35,3 +35,4 @@ const app = createApp({ app.use(router) window.vm = app.mount('#app') +window.r = router diff --git a/e2e/index.ts b/e2e/index.ts index 157c08dd..10a80679 100644 --- a/e2e/index.ts +++ b/e2e/index.ts @@ -1,4 +1,5 @@ import { createApp, ComponentPublicInstance } from 'vue' +import { Router } from '../src' const context = require.context('.', true, /^.{2,}\/index\.ts$/) const DIR_RE = /^\.\/([^/]+)\// @@ -15,6 +16,7 @@ declare global { interface Window { app: typeof app vm: ComponentPublicInstance + r: Router } } -- 2.39.5