From 6cbd798c720e70690972b9bad3ae29e03e5b1f96 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 14 Sep 2021 10:24:14 +0200 Subject: [PATCH] remove tests in transaction.vue Move test to the back --- frontend/src/components/Transaction.spec.js | 35 +------------------ .../AccountOverview/GdtTransactionList.vue | 3 -- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/frontend/src/components/Transaction.spec.js b/frontend/src/components/Transaction.spec.js index 5bb704de6..43dc44782 100644 --- a/frontend/src/components/Transaction.spec.js +++ b/frontend/src/components/Transaction.spec.js @@ -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) - }) }) }) diff --git a/frontend/src/views/Pages/AccountOverview/GdtTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GdtTransactionList.vue index 7591ec9ec..1ad4ba13e 100644 --- a/frontend/src/views/Pages/AccountOverview/GdtTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GdtTransactionList.vue @@ -90,9 +90,6 @@ export default { this.$toasted.error(error.message) }) }, - throwError(msg) { - throw new Error(msg) - }, showNext() { this.currentPage++ this.updateGdt()