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 () => {
|
beforeEach(async () => {
|
||||||
mockAPICall.mockResolvedValue({
|
mockAPICall.mockResolvedValue({
|
||||||
data: {
|
data: {
|
||||||
@ -110,6 +110,7 @@ describe('GddAmount', () => {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
jest.clearAllMocks()
|
jest.clearAllMocks()
|
||||||
|
wrapper.vm.$store.state.hideAmountGDD = true
|
||||||
await wrapper.find('div.border-left svg').trigger('click')
|
await wrapper.find('div.border-left svg').trigger('click')
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
})
|
})
|
||||||
@ -119,7 +120,7 @@ describe('GddAmount', () => {
|
|||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
mutation: updateUserInfos,
|
mutation: updateUserInfos,
|
||||||
variables: {
|
variables: {
|
||||||
hideAmountGDD: true,
|
hideAmountGDD: false,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
@ -101,7 +101,7 @@ describe('GdtAmount', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe.skip('second call to API', () => {
|
describe('second call to API', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
mockAPICall.mockResolvedValue({
|
mockAPICall.mockResolvedValue({
|
||||||
data: {
|
data: {
|
||||||
@ -111,6 +111,7 @@ describe('GdtAmount', () => {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
jest.clearAllMocks()
|
jest.clearAllMocks()
|
||||||
|
wrapper.vm.$store.state.hideAmountGDT = true
|
||||||
await wrapper.find('div.border-left svg').trigger('click')
|
await wrapper.find('div.border-left svg').trigger('click')
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
})
|
})
|
||||||
@ -120,7 +121,7 @@ describe('GdtAmount', () => {
|
|||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
mutation: updateUserInfos,
|
mutation: updateUserInfos,
|
||||||
variables: {
|
variables: {
|
||||||
hideAmountGDT: true,
|
hideAmountGDT: false,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user