diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js b/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js index b70192e80..b68d59958 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js @@ -60,24 +60,24 @@ describe('GddTransactionList', () => { }) }) - // describe.only('without any properties', () => { - // beforeEach(async () => { - // await wrapper.setProps({ - // transactions: [], - // count: -1, - // }) - // }) - // it('renders text saying that there are error.empty-transactionlist ', () => { - // expect(wrapper.find('div.gdd-transaction-list').text()).toContain( - // 'transaction.nullTransactions', - // ) - // }) - // it('renders text saying that there are no transaction.nullTransactions', () => { - // expect(wrapper.find('div.gdd-transaction-list').text()).toContain( - // 'transaction.nullTransactions', - // ) - // }) - // }) + describe('without any properties', () => { + beforeEach(async () => { + await wrapper.setProps({ + transactions: [], + count: -1, + }) + }) + it('renders text saying that there are error.empty-transactionlist ', () => { + expect(wrapper.find('div.gdd-transaction-list').text()).toContain( + 'transaction.nullTransactions', + ) + }) + it('renders text saying that there are no transaction.nullTransactions', () => { + expect(wrapper.find('div.gdd-transaction-list').text()).toContain( + 'transaction.nullTransactions', + ) + }) + }) describe('timestamp property', () => { it('emits update-transactions when timestamp changes', async () => { @@ -401,40 +401,6 @@ describe('GddTransactionList', () => { }) }) - // describe('with invalid transaction type', () => { - // beforeEach(async () => { - // await wrapper.setProps({ - // transactions: [ - // { - // id: 9, - // typeId: 'invalid', - // amount: '1', - // balance: '31.76099091058520945292', - // balanceDate: '2022-02-28T13:55:47.000Z', - // memo: 'adasd adada', - // linkedUser: { - // firstName: 'Bibi', - // lastName: 'Bloxberg', - // __typename: 'User', - // }, - // decay: { - // decay: '-0.2038314055482643084', - // start: '2022-02-25T07:29:26.000Z', - // end: '2022-02-28T13:55:47.000Z', - // duration: 282381, - // __typename: 'Decay', - // }, - // __typename: 'Transaction', - // }, - // ], - // }) - // }) - - // it('throws an error', () => { - // expect(errorHandler).toHaveBeenCalled(0) - // }) - // }) - describe('pagination buttons', () => { const transactions = Array.from({ length: 42 }, (_, idx) => { return { diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index af1e9775b..bd66630eb 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -95,9 +95,6 @@ export default { }) window.scrollTo(0, 0) }, - throwError(msg) { - throw new Error(msg) - }, }, watch: { currentPage() {