gradido/frontend/src/views/Pages/AccountOverview.spec.js
2021-05-21 13:00:21 +02:00

35 lines
763 B
JavaScript

import { shallowMount } from '@vue/test-utils'
import AccountOverview from './AccountOverview'
const localVue = global.localVue
describe('AccountOverview', () => {
let wrapper
const mocks = {
$t: jest.fn((t) => t),
}
const Wrapper = () => {
return shallowMount(AccountOverview, { localVue, mocks })
}
describe('shallow Mount', () => {
beforeEach(() => {
wrapper = Wrapper()
})
it('has a status line', () => {
expect(wrapper.find('gdd-status-stub').exists()).toBeTruthy()
})
it('has a send field', () => {
expect(wrapper.find('gdd-send-stub').exists()).toBeTruthy()
})
it('has a transactions table', () => {
expect(wrapper.find('gdd-table-stub').exists()).toBeTruthy()
})
})
})