From 6fcefc8df18cf2d13984098a31b7f7b1a09f9af7 Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 18 Apr 2023 14:55:24 +0200 Subject: [PATCH] refs #5357 faking route --- test/vitest/__tests__/components/common/VnLog.spec.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/vitest/__tests__/components/common/VnLog.spec.js b/test/vitest/__tests__/components/common/VnLog.spec.js index 48785a800..5d3af55f4 100644 --- a/test/vitest/__tests__/components/common/VnLog.spec.js +++ b/test/vitest/__tests__/components/common/VnLog.spec.js @@ -10,11 +10,7 @@ describe('VnLog', () => { model: "Claim", }, }).vm; - vi.mock('vue-router', () => ({ - useRoute: ()=>{ - return {params: {id: 1}} - }, - })); + vm.route = {params: {id: 1}} }); afterEach(() => {