mock replace in route.path, stub last transactions

This commit is contained in:
Moriz Wahl 2023-01-16 11:37:13 +01:00
parent 031da1b028
commit 82a6c61633

View File

@ -15,6 +15,7 @@ const routerPushMock = jest.fn()
const stubs = { const stubs = {
RouterLink: RouterLinkStub, RouterLink: RouterLinkStub,
RouterView: true, RouterView: true,
LastTransactions: true,
} }
const mocks = { const mocks = {
@ -29,6 +30,9 @@ const mocks = {
meta: { meta: {
hideFooter: false, hideFooter: false,
}, },
path: {
replace: jest.fn(),
},
}, },
$router: { $router: {
push: routerPushMock, push: routerPushMock,