mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
27 lines
585 B
JavaScript
27 lines
585 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import LastTransactions from './LastTransactions'
|
|
|
|
const localVue = global.localVue
|
|
|
|
const mocks = {
|
|
$t: jest.fn((t) => t),
|
|
$d: jest.fn((d) => d),
|
|
}
|
|
|
|
describe('TransactionLink', () => {
|
|
let wrapper
|
|
|
|
const Wrapper = () => {
|
|
return mount(LastTransactions, { localVue, mocks })
|
|
}
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('renders the component div.rightside-last-transactions', () => {
|
|
expect(wrapper.find('div.rightside-last-transactions').exists()).toBe(true)
|
|
})
|
|
})
|
|
})
|