mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix test
This commit is contained in:
parent
ee570e9578
commit
1a34db8b18
@ -67,9 +67,9 @@ describe('ContributionMessagesFormular', () => {
|
||||
await wrapper.find('form').trigger('submit')
|
||||
})
|
||||
|
||||
it('emitted "get-list-contribution-messages" with data', async () => {
|
||||
it('emitted "get-list-contribution-messages" with false', async () => {
|
||||
expect(wrapper.emitted('get-list-contribution-messages')).toEqual(
|
||||
expect.arrayContaining([expect.arrayContaining([42])]),
|
||||
expect.arrayContaining([expect.arrayContaining([false])]),
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
@ -9,6 +9,7 @@ describe('ContributionListItem', () => {
|
||||
const mocks = {
|
||||
$t: jest.fn((t) => t),
|
||||
$d: jest.fn((d) => d),
|
||||
$apollo: { query: jest.fn().mockResolvedValue() },
|
||||
}
|
||||
|
||||
const propsData = {
|
||||
@ -143,5 +144,16 @@ describe('ContributionListItem', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('getListContributionMessages', () => {
|
||||
beforeEach(() => {
|
||||
wrapper
|
||||
.findComponent({ name: 'ContributionMessagesList' })
|
||||
.vm.$emit('get-list-contribution-messages')
|
||||
})
|
||||
it('emits closeAllOpenCollapse', () => {
|
||||
expect(wrapper.emitted('closeAllOpenCollapse')).toBeTruthy()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user