Skip to content

Conversation

@johntimothybailey
Copy link

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.

…lve the complete (invoke complete). This solves an issue where a thrown error will never trigger the complete function.
…o the block function. This allows the developer to reference the spec within the block. With the Jasmine it function, the block supplied gets the context of spec (or rather is the context of spec)
@mkuklis
Copy link

mkuklis commented Feb 27, 2013

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

  block.call(this,complete);

fixes the problem.

@meleyal
Copy link

meleyal commented Jun 14, 2013

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants