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 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)
@ -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)