From ae1aaa9741bd6442a1eea4f6e4a8230734a7bbfd Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 10 Aug 2021 19:26:07 +0200 Subject: [PATCH] added mocks for store and i18n to fix test --- .../src/views/Pages/UserProfileTransactionList.spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/views/Pages/UserProfileTransactionList.spec.js b/frontend/src/views/Pages/UserProfileTransactionList.spec.js index 44af57855..61a23345b 100644 --- a/frontend/src/views/Pages/UserProfileTransactionList.spec.js +++ b/frontend/src/views/Pages/UserProfileTransactionList.spec.js @@ -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 = () => {