registerEndpoint requires multiple flushPromises
take this code for instance... if I only use 1 flushPromises, the expect won't work.
Is it expected ?
Is there a workaround ?
thanks !
1 Reply
the solution is to return $fetch in deleteChannel()
and
await wrapper.vm.deleteChannel()