]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test(e2e): fix
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Jun 2021 16:36:47 +0000 (18:36 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Jun 2021 16:36:47 +0000 (18:36 +0200)
e2e/transitions/index.ts

index 06c50029e65506113f18932cc74cdf7d7bae6805..1faaa47f654d38a9f55c8b1ab2a1f4299952f070 100644 (file)
@@ -2,7 +2,7 @@ import { createRouter, createWebHistory } from '../../src'
 import { RouteComponent } from '../../src/types'
 import { createApp, defineComponent, nextTick, ref } from 'vue'
 
-const delay = (t: number) => new Promise(r => setTimeout(r, t))
+// const delay = (t: number) => new Promise(r => setTimeout(r, t))
 
 const Home: RouteComponent = {
   template: `
@@ -11,9 +11,6 @@ const Home: RouteComponent = {
       <p>hello</p>
     </div>
   `,
-  async setup() {
-    await delay(1000)
-  },
 }
 
 // override existing style on dev with shorter times
@@ -59,9 +56,6 @@ const Parent: RouteComponent = {
       </router-view>
     </div>
   `,
-  async setup() {
-    await delay(1000)
-  },
 }
 
 const NestedTransition = defineComponent({