From: Eduardo San Martin Morote Date: Tue, 11 Jun 2019 12:20:21 +0000 (+0200) Subject: test(example): log time waiting X-Git-Tag: v4.0.0-alpha.0~341 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae71093394d0eccb4eb6e2e6a4ce4ed7ecf36b2;p=thirdparty%2Fvuejs%2Frouter.git test(example): log time waiting --- diff --git a/explorations/html5.ts b/explorations/html5.ts index 22e80923..25cb6003 100644 --- a/explorations/html5.ts +++ b/explorations/html5.ts @@ -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() })