remove tests in transaction.vue Move test to the back

This commit is contained in:
ogerly 2021-09-14 10:24:14 +02:00
parent fa32b35f55
commit 6cbd798c72
2 changed files with 1 additions and 37 deletions

View File

@ -15,17 +15,8 @@ describe('Transaction', () => {
$d: jest.fn((d) => d),
}
const propsData = {
amount: 100,
gdt: 110,
factor: 22,
comment: 'this is the comment for a gdt transaction',
date: '2020-04-10T13:28:00+00:00',
gdtEntryType: 4,
}
const Wrapper = () => {
return mount(Transaction, { localVue, mocks, propsData })
return mount(Transaction, { localVue, mocks })
}
describe('mount', () => {
@ -36,29 +27,5 @@ describe('Transaction', () => {
it('renders the component', () => {
expect(wrapper.find('div.gdt-transaction-list-item').exists()).toBeTruthy()
})
it('checks the prop amount ', () => {
expect(wrapper.props().amount).toBe(100)
})
it('checks the prop gdt ', () => {
expect(wrapper.props().gdt).toBe(110)
})
it('checks the prop factor ', () => {
expect(wrapper.props().factor).toBe(22)
})
it('checks the prop comment ', () => {
expect(wrapper.props().comment).toBe('this is the comment for a gdt transaction')
})
it('checks the prop date ', () => {
expect(wrapper.props().date).toBe('2020-04-10T13:28:00+00:00')
})
it('checks the prop gdtEntryType ', () => {
expect(wrapper.props().gdtEntryType).toBe(4)
})
})
})

View File

@ -90,9 +90,6 @@ export default {
this.$toasted.error(error.message)
})
},
throwError(msg) {
throw new Error(msg)
},
showNext() {
this.currentPage++
this.updateGdt()