From: Eduardo San Martin Morote Date: Fri, 3 Apr 2020 09:38:15 +0000 (+0200) Subject: test(e2e): allow window.r X-Git-Tag: v4.0.0-alpha.5~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=739243c8126c4e1fadf31bc7e3c82d5ba05e188f;p=thirdparty%2Fvuejs%2Frouter.git test(e2e): allow window.r --- 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 } }