jasmine.async icon indicating copy to clipboard operation
jasmine.async copied to clipboard

Fix for thrown errors never invoking complete

Open johntimothybailey opened this issue 13 years ago • 2 comments

In default Jasmine, when an error is thrown within a it() the tests will continue forward. If an error occurs within the block function provided, then the complete function is never invoked and thus the tests will not move forward until the timeout is triggered (default: 2000). Let me know if you guys need a sample. This solved our issues with several hundred tests taking "forever" on failures.

johntimothybailey avatar Jan 21 '13 22:01 johntimothybailey

I ran into the same issue. Please merge this pull request :)

  block.call(this,complete);

fixes the problem.

mkuklis avatar Feb 27 '13 02:02 mkuklis

+1

meleyal avatar Jun 14 '13 11:06 meleyal