mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Fix 'second call to API' test of Gdt- and GddAmount
This commit is contained in:
parent
95e1cd4b6d
commit
676283449c
@ -100,7 +100,7 @@ describe('GddAmount', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe.skip('second call to API', () => {
|
||||
describe('second call to API', () => {
|
||||
beforeEach(async () => {
|
||||
mockAPICall.mockResolvedValue({
|
||||
data: {
|
||||
@ -110,6 +110,7 @@ describe('GddAmount', () => {
|
||||
},
|
||||
})
|
||||
jest.clearAllMocks()
|
||||
wrapper.vm.$store.state.hideAmountGDD = true
|
||||
await wrapper.find('div.border-left svg').trigger('click')
|
||||
await flushPromises()
|
||||
})
|
||||
@ -119,7 +120,7 @@ describe('GddAmount', () => {
|
||||
expect.objectContaining({
|
||||
mutation: updateUserInfos,
|
||||
variables: {
|
||||
hideAmountGDD: true,
|
||||
hideAmountGDD: false,
|
||||
},
|
||||
}),
|
||||
)
|
||||
|
||||
@ -101,7 +101,7 @@ describe('GdtAmount', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe.skip('second call to API', () => {
|
||||
describe('second call to API', () => {
|
||||
beforeEach(async () => {
|
||||
mockAPICall.mockResolvedValue({
|
||||
data: {
|
||||
@ -111,6 +111,7 @@ describe('GdtAmount', () => {
|
||||
},
|
||||
})
|
||||
jest.clearAllMocks()
|
||||
wrapper.vm.$store.state.hideAmountGDT = true
|
||||
await wrapper.find('div.border-left svg').trigger('click')
|
||||
await flushPromises()
|
||||
})
|
||||
@ -120,7 +121,7 @@ describe('GdtAmount', () => {
|
||||
expect.objectContaining({
|
||||
mutation: updateUserInfos,
|
||||
variables: {
|
||||
hideAmountGDT: true,
|
||||
hideAmountGDT: false,
|
||||
},
|
||||
}),
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user