diff --git a/frontend/src/components/Template/RightSide/LastTransactions.spec.js b/frontend/src/components/Template/RightSide/LastTransactions.spec.js new file mode 100644 index 000000000..d49701cd1 --- /dev/null +++ b/frontend/src/components/Template/RightSide/LastTransactions.spec.js @@ -0,0 +1,26 @@ +import { mount } from '@vue/test-utils' +import LastTransactions from './LastTransactions' + +const localVue = global.localVue + +const mocks = { + $t: jest.fn((t) => t), + $d: jest.fn((d) => d), +} + +describe('TransactionLink', () => { + let wrapper + + const Wrapper = () => { + return mount(LastTransactions, { localVue, mocks }) + } + describe('mount', () => { + beforeEach(() => { + wrapper = Wrapper() + }) + + it('renders the component div.rightside-last-transactions', () => { + expect(wrapper.find('div.rightside-last-transactions').exists()).toBe(true) + }) + }) +}) diff --git a/frontend/src/components/Template/RightSide/LastTransactions.vue b/frontend/src/components/Template/RightSide/LastTransactions.vue index e28059942..bba4b26e3 100644 --- a/frontend/src/components/Template/RightSide/LastTransactions.vue +++ b/frontend/src/components/Template/RightSide/LastTransactions.vue @@ -72,10 +72,5 @@ export default { transactionCount: { type: Number, default: 0 }, transactionLinkCount: { type: Number, default: 0 }, }, - computed: { - avatarText() { - return this.linkedUser.firstName[0] + this.linkedUser.lastName[0] - }, - }, }