-
Hi guys! When I call this test, Apollo is throwing an error for the errorMock I've made. Has anyone ever got this error? It's funny because other tests that uses the same logic are working just fine, just this one
Any tips on why this is happening? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So....
Here was the code I was using for the call. Notice that I was closing the observable before the error call. All I had to do was:
Close the subscription the right way, and I got it working... For anyone having the same problem, here's the answer! |
Beta Was this translation helpful? Give feedback.
So....
Here was the code I was using for the call. Notice that I was closing the observable before the error call.
All I had to do was: