From e8aad2e317eab68d20aae91c7253af64e279f5dc Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 12 May 2021 04:30:15 +0200 Subject: [PATCH] get the test working. ToDo: Test this component! --- .../src/views/Pages/AccountOverview.spec.js | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/frontend/src/views/Pages/AccountOverview.spec.js b/frontend/src/views/Pages/AccountOverview.spec.js index 1454ada5c..68d91ee98 100644 --- a/frontend/src/views/Pages/AccountOverview.spec.js +++ b/frontend/src/views/Pages/AccountOverview.spec.js @@ -34,30 +34,5 @@ describe('AccountOverview', () => { it('has a transactions table', () => { expect(wrapper.find('gdd-table-stub').exists()).toBeTruthy() }) - - describe('updateBalance method', () => { - beforeEach(async () => { - wrapper.find('gdd-send-stub').vm.$emit('update-balance', { - ammount: 42, - }) - await wrapper.vm.$nextTick() - }) - - it('emmits updateBalance with correct value', () => { - expect(wrapper.emitted('update-balance')).toEqual([[42]]) - }) - }) - - describe('toggleShowList method', () => { - beforeEach(async () => { - wrapper.setProps({ showTransactionList: false }) - wrapper.find('gdd-send-stub').vm.$emit('toggle-show-list', true) - await wrapper.vm.$nextTick() - }) - - it('changes the value of property showTransactionList', () => { - expect(wrapper.vm.showTransactionList).toBeTruthy() - }) - }) }) })