added mocks for store and i18n to fix test

This commit is contained in:
Moriz Wahl 2021-08-10 19:26:07 +02:00
parent 0b86820060
commit ae1aaa9741

View File

@ -19,6 +19,15 @@ describe('UserProfileTransactionList', () => {
const mocks = {
$t: jest.fn((t) => t),
$n: jest.fn((n) => String(n)),
$d: jest.fn((d) => d),
$i18n: {
locale: jest.fn(() => 'en'),
},
$store: {
state: {
sessionId: 1,
},
},
}
const Wrapper = () => {