You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the first example, using only Jasmine, the test fails when an unhandled promise rejection occurs. I would argue this is the correct, expected behavior.
In the second example, using Karma-Jasmine, the test passes with the exact same code.
I'm using mostly out of the box configuration for both examples. I'm attaching both projects zipped if you need to see the full source code.
Can anybody help me understand why, in the second example, that test is passing? What is different once Karma enters the mix? Is this something I can configure somewhere?
Raw Jasmine:
Karma-Jasmine:
In the first example, using only Jasmine, the test fails when an unhandled promise rejection occurs. I would argue this is the correct, expected behavior.
In the second example, using Karma-Jasmine, the test passes with the exact same code.
I'm using mostly out of the box configuration for both examples. I'm attaching both projects zipped if you need to see the full source code.
Can anybody help me understand why, in the second example, that test is passing? What is different once Karma enters the mix? Is this something I can configure somewhere?
Thanks much!
jasmine-test.zip
karma-jasmine-test.zip
The text was updated successfully, but these errors were encountered: