From: Eduardo San Martin Morote Date: Wed, 1 May 2019 13:52:12 +0000 (+0200) Subject: test: add pending tests for guards X-Git-Tag: v4.0.0-alpha.0~422 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e93e4c9b6026cb1b4bbfbaf1b35de4c7a772aa6;p=thirdparty%2Fvuejs%2Frouter.git test: add pending tests for guards --- diff --git a/__tests__/global-before-guards.spec.js b/__tests__/global-before-guards.spec.js index c101383a..78d4518f 100644 --- a/__tests__/global-before-guards.spec.js +++ b/__tests__/global-before-guards.spec.js @@ -51,6 +51,9 @@ describe('navigation guards', () => { expect(spy).toHaveBeenCalledTimes(1) }) + it.skip('calls beforeEach guards on replace', () => {}) + it.skip('does not call beforeEach guard if we were already on the page', () => {}) + it('waits before navigating', async () => { const [promise, resolve] = fakePromise() const router = createRouter({ routes }) diff --git a/__tests__/per-route-before-guards.spec.js b/__tests__/per-route-before-guards.spec.js index 1422c708..4e7dcb84 100644 --- a/__tests__/per-route-before-guards.spec.js +++ b/__tests__/per-route-before-guards.spec.js @@ -60,6 +60,7 @@ describe('navigation guards', () => { }) it.skip('calls beforeEnter guards on replace', () => {}) + it.skip('does not call beforeEnter guard if we were already on the page', () => {}) it('waits before navigating', async () => { const [promise, resolve] = fakePromise()