]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test(e2e): allow window.r
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 3 Apr 2020 09:38:15 +0000 (11:38 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 3 Apr 2020 09:38:15 +0000 (11:38 +0200)
e2e/encoding/index.ts
e2e/index.ts

index a63ccebc3a6c0d0eeb6cbcd2604755311001766d..a442d06fc2af866c930b1f5ee1bcb410e5a32cdd 100644 (file)
@@ -35,3 +35,4 @@ const app = createApp({
 app.use(router)
 
 window.vm = app.mount('#app')
+window.r = router
index 157c08dd658efa1daae78649032d959237e4e1e6..10a8067935a89cef4eb5b64033c30f78f5546acf 100644 (file)
@@ -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
   }
 }