mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
added mocks for store and i18n to fix test
This commit is contained in:
parent
0b86820060
commit
ae1aaa9741
@ -19,6 +19,15 @@ describe('UserProfileTransactionList', () => {
|
|||||||
const mocks = {
|
const mocks = {
|
||||||
$t: jest.fn((t) => t),
|
$t: jest.fn((t) => t),
|
||||||
$n: jest.fn((n) => String(n)),
|
$n: jest.fn((n) => String(n)),
|
||||||
|
$d: jest.fn((d) => d),
|
||||||
|
$i18n: {
|
||||||
|
locale: jest.fn(() => 'en'),
|
||||||
|
},
|
||||||
|
$store: {
|
||||||
|
state: {
|
||||||
|
sessionId: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user