mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove tests in transaction.vue Move test to the back
This commit is contained in:
parent
fa32b35f55
commit
6cbd798c72
@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -90,9 +90,6 @@ export default {
|
||||
this.$toasted.error(error.message)
|
||||
})
|
||||
},
|
||||
throwError(msg) {
|
||||
throw new Error(msg)
|
||||
},
|
||||
showNext() {
|
||||
this.currentPage++
|
||||
this.updateGdt()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user