]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test(example): log time waiting
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 11 Jun 2019 12:20:21 +0000 (14:20 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 11 Jun 2019 12:20:21 +0000 (14:20 +0200)
explorations/html5.ts

index 22e8092362a93b36f4bfa29f0901512acc8d5ba2..25cb6003697454ee923c21c39807452e0d2fc43a 100644 (file)
@@ -74,7 +74,10 @@ r.beforeEach(async (to, from, next) => {
   if (to.params.id === 'no-name') return next(false)
 
   const time = Number(to.query.delay)
-  if (time > 0) await delay(time)
+  if (time > 0) {
+    console.log('⏳ waiting ' + time + 'ms')
+    await delay(time)
+  }
   next()
 })