mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add test methods OpenCreationsTable
This commit is contained in:
parent
4a0eb8f671
commit
f8da264482
@ -125,5 +125,35 @@ describe('OpenCreationsTable', () => {
|
||||
expect(wrapper.find('div.component-edit-creation-formular').exists()).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
||||
describe('updateCreationData', () => {
|
||||
beforeEach(() => {
|
||||
wrapper.setData({
|
||||
creationUserData: {
|
||||
amount: 100,
|
||||
date: '',
|
||||
memo: '',
|
||||
moderator: 1,
|
||||
},
|
||||
})
|
||||
wrapper.vm.updateCreationData()
|
||||
})
|
||||
it('function updateCreationData', () => {
|
||||
expect(wrapper.vm.creationUserData).toEqual({
|
||||
amount: 100,
|
||||
date: '',
|
||||
memo: '',
|
||||
moderator: 1,
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('updateUserData', () => {
|
||||
it('function updateUserData', () => {
|
||||
beforeEach(() => {
|
||||
wrapper.vm.updateUserData()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user