mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix tests
This commit is contained in:
parent
2b113f841b
commit
78442409a8
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user