mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
32 lines
610 B
JavaScript
32 lines
610 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import Transaction from './Transaction'
|
|
|
|
const localVue = global.localVue
|
|
|
|
describe('Transaction', () => {
|
|
let wrapper
|
|
|
|
const mocks = {
|
|
$i18n: {
|
|
locale: 'en',
|
|
},
|
|
$t: jest.fn((t) => t),
|
|
$n: jest.fn((n) => n),
|
|
$d: jest.fn((d) => d),
|
|
}
|
|
|
|
const Wrapper = () => {
|
|
return mount(Transaction, { localVue, mocks })
|
|
}
|
|
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('renders the component', () => {
|
|
expect(wrapper.find('div.gdt-transaction-list-item').exists()).toBeTruthy()
|
|
})
|
|
})
|
|
})
|