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

Only call callback with two args if return is undefined #11

Merged
merged 1 commit into from
May 16, 2014

Conversation

tschaub
Copy link
Owner

@tschaub tschaub commented May 16, 2014

This makes mock-fs work with modules that check the function arity (e.g. async).

Thanks @bruse for finding the issue and providing the test case. Fixes #10.

tschaub added a commit that referenced this pull request May 16, 2014
Only call callback with two args if return is undefined.
@tschaub tschaub merged commit 7aad898 into master May 16, 2014
@tschaub tschaub deleted the preserve-arity branch May 16, 2014 21:11
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.

1 participant