fix tests

This commit is contained in:
Ulf Gebhardt 2021-10-02 18:00:35 +02:00
parent 2b113f841b
commit 78442409a8
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -1,5 +1,6 @@
import { mount } from '@vue/test-utils' import { mount } from '@vue/test-utils'
import TransactionCollapse from './TransactionCollapse' import TransactionCollapse from './TransactionCollapse'
import { GdtEntryType } from '../graphql/enums'
const localVue = global.localVue const localVue = global.localVue
@ -15,13 +16,13 @@ describe('TransactionCollapse', () => {
return mount(TransactionCollapse, { localVue, mocks, propsData }) return mount(TransactionCollapse, { localVue, mocks, propsData })
} }
describe('mount with gdtEntryType: 1', () => { describe('mount with gdtEntryType: FORM', () => {
beforeEach(() => { beforeEach(() => {
const propsData = { const propsData = {
amount: 100, amount: 100,
gdt: 110, gdt: 110,
factor: 22, factor: 22,
gdtEntryType: 1, gdtEntryType: GdtEntryType.FORM,
} }
wrapper = Wrapper(propsData) wrapper = Wrapper(propsData)
@ -60,13 +61,13 @@ describe('TransactionCollapse', () => {
}) })
}) })
describe('mount with gdtEntryType: 7', () => { describe('mount with gdtEntryType: GLOBAL_MODIFICATOR', () => {
beforeEach(() => { beforeEach(() => {
const propsData = { const propsData = {
amount: 100, amount: 100,
gdt: 2200, gdt: 2200,
factor: 22, factor: 22,
gdtEntryType: 7, gdtEntryType: GdtEntryType.GLOBAL_MODIFICATOR,
} }
wrapper = Wrapper(propsData) wrapper = Wrapper(propsData)
@ -105,13 +106,13 @@ describe('TransactionCollapse', () => {
}) })
}) })
describe('mount with gdtEntryType: 4', () => { describe('mount with gdtEntryType: ELOPAGE_PUBLISHER', () => {
beforeEach(() => { beforeEach(() => {
const propsData = { const propsData = {
amount: 100, amount: 100,
gdt: 2200, gdt: 2200,
factor: 22, factor: 22,
gdtEntryType: 4, gdtEntryType: GdtEntryType.ELOPAGE_PUBLISHER,
} }
wrapper = Wrapper(propsData) wrapper = Wrapper(propsData)