mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add .locale to mocks
This commit is contained in:
parent
a442017cd5
commit
bcccf9e745
@ -1,5 +1,6 @@
|
|||||||
import { mount } from '@vue/test-utils'
|
import { mount } from '@vue/test-utils'
|
||||||
import GddTransactionList from './GddTransactionList'
|
import GddTransactionList from './GddTransactionList'
|
||||||
|
import flushPromises from 'flush-promises'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
@ -18,6 +19,9 @@ describe('GddTransactionList', () => {
|
|||||||
$n: jest.fn((n) => n),
|
$n: jest.fn((n) => n),
|
||||||
$t: jest.fn((t) => t),
|
$t: jest.fn((t) => t),
|
||||||
$d: jest.fn((d) => d),
|
$d: jest.fn((d) => d),
|
||||||
|
$i18n: {
|
||||||
|
locale: () => 'en',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
@ -81,6 +85,7 @@ describe('GddTransactionList', () => {
|
|||||||
],
|
],
|
||||||
transactionCount: 12,
|
transactionCount: 12,
|
||||||
})
|
})
|
||||||
|
await flushPromises()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders 4 transactions', () => {
|
it('renders 4 transactions', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user