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 { 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)
|
||||||
@ -76,7 +77,7 @@ describe('TransactionCollapse', () => {
|
|||||||
expect(wrapper.find('div.gdt-transaction-collapse').exists()).toBeTruthy()
|
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)
|
expect(wrapper.props().gdtEntryType).toBe(7)
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user