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

add Runnable.globals(arr) method for per test global whitelist #1046

Merged
merged 1 commit into from
Dec 6, 2013

Conversation

defunctzombie
Copy link
Contributor

Instead of suite wide whitelisting of global leaks, this allows for
individual tests to whitelist globals. This allows for keeping global
detection for tests which are not expected to set globals while allowing
for certain globals if the author expects a test to set globals

Instead of suite wide whitelisting of global leaks, this allows for
individual tests to whitelist globals. This allows for keeping global
detection for tests which are not expected to set globals while allowing
for certain globals if the author expects a test to set globals
@defunctzombie
Copy link
Contributor Author

Any thoughts on this PR? I would like this functionality for some browser tests in engine.io-client which need to whitelist per test globals.

@tj
Copy link
Contributor

tj commented Nov 28, 2013

SGTM

travisjeffery pushed a commit that referenced this pull request Dec 6, 2013
add Runnable.globals(arr) method for per test global whitelist
@travisjeffery travisjeffery merged commit bcfdeab into mochajs:master Dec 6, 2013
@travisjeffery
Copy link
Contributor

👍

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.

None yet

3 participants