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

Correct erroneous test #1047

Merged
merged 1 commit into from
Nov 30, 2013
Merged

Conversation

jugglinmike
Copy link
Contributor

Because the Runnable under test is not part of a Suite, its context is
undefined. Prior to this commit, the error returned was a
runtime-generated ReferenceError, not a Mocha-generated Error.

Set the timeout via the Runnable#timeout method, and update the test
to assert the correct behavior (not implementation details such as the
message body of the generated error).

Because the Runnable under test is not part of a Suite, its context is
undefined. Prior to this commit, the error returned was a
runtime-generated `ReferenceError`, not a Mocha-generated `Error`.

Set the timeout via the `Runnable#timeout` method, and update the test
to assert the correct behavior (not implementation details such as the
message body of the generated error).
travisjeffery added a commit that referenced this pull request Nov 30, 2013
Correct erroneous test

* jugglinmike/fix-timeout-test-2:
  Correct erroneous test

Conflicts:
	test/runnable.js
@travisjeffery travisjeffery merged commit ddf218e into mochajs:master Nov 30, 2013
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.

2 participants