diff --git a/frontend/src/components/GddSend/TransactionConfirmation.spec.js b/frontend/src/components/GddSend/TransactionConfirmation.spec.js deleted file mode 100644 index 95c478c73..000000000 --- a/frontend/src/components/GddSend/TransactionConfirmation.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -import { mount } from '@vue/test-utils' -import TransactionConfirmation from './TransactionConfirmationLink' - -const localVue = global.localVue - -describe('GddSend confirm', () => { - let wrapper - - const mocks = { - $t: jest.fn((t) => t), - $i18n: { - locale: jest.fn(() => 'en'), - }, - $n: jest.fn((n) => String(n)), - } - - const propsData = { - balance: 1234, - email: 'user@example.org', - amount: 12.34, - memo: 'Pessimisten stehen im Regen, Optimisten duschen unter den Wolken.', - loading: false, - selected: 'send', - } - - const Wrapper = () => { - return mount(TransactionConfirmation, { localVue, mocks, propsData }) - } - - describe('mount', () => { - beforeEach(() => { - wrapper = Wrapper() - }) - - it('renders the component div.transaction-confirm', () => { - expect(wrapper.find('div.transaction-confirm').exists()).toBeTruthy() - }) - - describe('has selected "send"', () => { - beforeEach(async () => { - await wrapper.setProps({ - selected: 'send', - }) - }) - - it('renders the component div.confirm-box-send', () => { - expect(wrapper.find('div.confirm-box-send').exists()).toBeTruthy() - }) - }) - - describe('has selected "link"', () => { - beforeEach(async () => { - await wrapper.setProps({ - selected: 'link', - }) - }) - - it('renders the component div.confirm-box-link', () => { - expect(wrapper.findAll('div.confirm-box-link').at(0).exists()).toBeTruthy() - }) - }) - }) -}) diff --git a/frontend/src/components/GddSend/TransactionConfirmationLink.vue b/frontend/src/components/GddSend/TransactionConfirmationLink.vue index f02b7a063..6b91b0a08 100644 --- a/frontend/src/components/GddSend/TransactionConfirmationLink.vue +++ b/frontend/src/components/GddSend/TransactionConfirmationLink.vue @@ -51,7 +51,7 @@