From 8f7182e4a3edef90e05beb9a179ef65ea90fb374 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 24 Nov 2020 10:12:51 +0100 Subject: [PATCH] test: add assertion --- __tests__/guards/onBeforeRouteLeave.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/__tests__/guards/onBeforeRouteLeave.spec.ts b/__tests__/guards/onBeforeRouteLeave.spec.ts index 139cf5ea..7fd60c63 100644 --- a/__tests__/guards/onBeforeRouteLeave.spec.ts +++ b/__tests__/guards/onBeforeRouteLeave.spec.ts @@ -42,6 +42,7 @@ describe('onBeforeRouteLeave', () => { await router.isReady() await router.push('/leave') await router.push('/') + expect(spy).toHaveBeenCalledTimes(1) await router.push('/leave') await router.push('/') expect(spy).toHaveBeenCalledTimes(2) -- 2.47.3