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

Minor test refactoring. #221

Merged
merged 1 commit into from
Apr 6, 2015
Merged

Minor test refactoring. #221

merged 1 commit into from
Apr 6, 2015

Conversation

jails
Copy link
Contributor

@jails jails commented Apr 4, 2015

The fact that in the modified test hook1 & hook2 was an empty object it was possible to change hook1 references to hook2 in asserts and vice versa w/o breaking any assert (i.e assets here are based on deepEqual). Also the fact there was a common stack of calls log, it wasn't possible to check specificaly which hook has been called with the expected call. This PR is just a minor refactoring to make the test a bit more robust.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.49% when pulling a69464f on jails:refactor-hook-test into 1186cdc on Matt-Esch:master.

Matt-Esch added a commit that referenced this pull request Apr 6, 2015
@Matt-Esch Matt-Esch merged commit c1a255b into Matt-Esch:master Apr 6, 2015
@Matt-Esch
Copy link
Owner

This seems much cleaner

@jails jails deleted the refactor-hook-test branch April 6, 2015 10:48
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