Skip to content

Commit 1c0ba48

Browse files
authored
update example (#1635)
1 parent f2b5d52 commit 1c0ba48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/guide/advanced/vue-router.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ test('allows authenticated user to edit a post', async () => {
477477
}
478478
})
479479

480+
const push = jest.spyOn(router, 'push')
480481
await wrapper.find('button').trigger('click')
481482

482483
expect(push).toHaveBeenCalledTimes(1)

0 commit comments

Comments
 (0)