diff --git a/frontend/src/components/TransactionCollapse.spec.js b/frontend/src/components/TransactionCollapse.spec.js index f27c3ae66..8cb84f7a2 100644 --- a/frontend/src/components/TransactionCollapse.spec.js +++ b/frontend/src/components/TransactionCollapse.spec.js @@ -1,5 +1,6 @@ import { mount } from '@vue/test-utils' import TransactionCollapse from './TransactionCollapse' +import { GdtEntryType } from '../graphql/enums' const localVue = global.localVue @@ -15,13 +16,13 @@ describe('TransactionCollapse', () => { return mount(TransactionCollapse, { localVue, mocks, propsData }) } - describe('mount with gdtEntryType: 1', () => { + describe('mount with gdtEntryType: FORM', () => { beforeEach(() => { const propsData = { amount: 100, gdt: 110, factor: 22, - gdtEntryType: 1, + gdtEntryType: GdtEntryType.FORM, } wrapper = Wrapper(propsData) @@ -60,13 +61,13 @@ describe('TransactionCollapse', () => { }) }) - describe('mount with gdtEntryType: 7', () => { + describe('mount with gdtEntryType: GLOBAL_MODIFICATOR', () => { beforeEach(() => { const propsData = { amount: 100, gdt: 2200, factor: 22, - gdtEntryType: 7, + gdtEntryType: GdtEntryType.GLOBAL_MODIFICATOR, } wrapper = Wrapper(propsData) @@ -76,7 +77,7 @@ describe('TransactionCollapse', () => { expect(wrapper.find('div.gdt-transaction-collapse').exists()).toBeTruthy() }) - it('checks the prop gdtEntryType ', () => { + it('checks the prop gdtEntryType', () => { expect(wrapper.props().gdtEntryType).toBe(7) }) @@ -105,13 +106,13 @@ describe('TransactionCollapse', () => { }) }) - describe('mount with gdtEntryType: 4', () => { + describe('mount with gdtEntryType: ELOPAGE_PUBLISHER', () => { beforeEach(() => { const propsData = { amount: 100, gdt: 2200, factor: 22, - gdtEntryType: 4, + gdtEntryType: GdtEntryType.ELOPAGE_PUBLISHER, } wrapper = Wrapper(propsData)