Skip to content

Commit 8f7182e

Browse files
committed
test: add assertion
1 parent 4ad517e commit 8f7182e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

__tests__/guards/onBeforeRouteLeave.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ describe('onBeforeRouteLeave', () => {
4242
await router.isReady()
4343
await router.push('/leave')
4444
await router.push('/')
45+
expect(spy).toHaveBeenCalledTimes(1)
4546
await router.push('/leave')
4647
await router.push('/')
4748
expect(spy).toHaveBeenCalledTimes(2)

0 commit comments

Comments
 (0)