Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for thrown errors never invoking complete #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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