Fix 'second call to API' test of Gdt- and GddAmount

This commit is contained in:
elweyn 2023-01-10 14:35:56 +01:00
parent 95e1cd4b6d
commit 676283449c
2 changed files with 6 additions and 4 deletions

View File

@ -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,
},
}),
)

View File

@ -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,
},
}),
)