mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix tests to use enum definitions
This commit is contained in:
parent
78442409a8
commit
4aa5316110
@ -33,7 +33,7 @@ describe('TransactionCollapse', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('checks the prop gdtEntryType', () => {
|
it('checks the prop gdtEntryType', () => {
|
||||||
expect(wrapper.props().gdtEntryType).toBe(1)
|
expect(wrapper.props().gdtEntryType).toBe('FORM')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders the component collapse-header', () => {
|
it('renders the component collapse-header', () => {
|
||||||
@ -78,7 +78,7 @@ describe('TransactionCollapse', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('checks the prop gdtEntryType', () => {
|
it('checks the prop gdtEntryType', () => {
|
||||||
expect(wrapper.props().gdtEntryType).toBe(7)
|
expect(wrapper.props().gdtEntryType).toBe('GLOBAL_MODIFICATOR')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders the component collapse-header', () => {
|
it('renders the component collapse-header', () => {
|
||||||
@ -123,7 +123,7 @@ describe('TransactionCollapse', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('checks the prop gdtEntryType', () => {
|
it('checks the prop gdtEntryType', () => {
|
||||||
expect(wrapper.props().gdtEntryType).toBe(4)
|
expect(wrapper.props().gdtEntryType).toBe('ELOPAGE_PUBLISHER')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders the component collapse-header', () => {
|
it('renders the component collapse-header', () => {
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import { mount } from '@vue/test-utils'
|
import { mount } from '@vue/test-utils'
|
||||||
|
import { GdtEntryType } from '../../../graphql/enums'
|
||||||
import GdtTransactionList from './GdtTransactionList'
|
import GdtTransactionList from './GdtTransactionList'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
@ -14,7 +15,7 @@ const apolloMock = jest.fn().mockResolvedValue({
|
|||||||
factor: 17,
|
factor: 17,
|
||||||
comment: '',
|
comment: '',
|
||||||
date: '2021-05-02T17:20:11+00:00',
|
date: '2021-05-02T17:20:11+00:00',
|
||||||
gdtEntryType: 1,
|
gdtEntryType: GdtEntryType.FORM,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
amount: 1810,
|
amount: 1810,
|
||||||
@ -22,7 +23,7 @@ const apolloMock = jest.fn().mockResolvedValue({
|
|||||||
factor: 0.2,
|
factor: 0.2,
|
||||||
comment: 'Dezember 20',
|
comment: 'Dezember 20',
|
||||||
date: '2020-12-31T12:00:00+00:00',
|
date: '2020-12-31T12:00:00+00:00',
|
||||||
gdtEntryType: 7,
|
gdtEntryType: GdtEntryType.GLOBAL_MODIFICATOR,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
amount: 100,
|
amount: 100,
|
||||||
@ -30,7 +31,7 @@ const apolloMock = jest.fn().mockResolvedValue({
|
|||||||
factor: 17,
|
factor: 17,
|
||||||
comment: '',
|
comment: '',
|
||||||
date: '2020-05-07T17:00:00+00:00',
|
date: '2020-05-07T17:00:00+00:00',
|
||||||
gdtEntryType: 1,
|
gdtEntryType: GdtEntryType.FORM,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
amount: 100,
|
amount: 100,
|
||||||
@ -38,7 +39,7 @@ const apolloMock = jest.fn().mockResolvedValue({
|
|||||||
factor: 22,
|
factor: 22,
|
||||||
comment: '',
|
comment: '',
|
||||||
date: '2020-04-10T13:28:00+00:00',
|
date: '2020-04-10T13:28:00+00:00',
|
||||||
gdtEntryType: 4,
|
gdtEntryType: GdtEntryType.ELOPAGE_PUBLISHER,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user