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

Expose the util package through the chai object #335

Merged
merged 1 commit into from Jan 2, 2015

Conversation

DingoEatingFuzz
Copy link
Contributor

The util object has a lot of helpful functions in it that would be nice to use outside the context of assertions.

For instance, if you want to check deep equality without breaking when false.

if (chai.util.eql(obj1, obj2)) {
  // do more things
} else {
  // do other things instead of having a failing assertion
}

The chai util object has a lot of useful functions that can be used
outside of the context of assertions.
@keithamus
Copy link
Member

Hi @DingoEatingFuzz, thanks for the pull request! Seems like a fairly straightforward addition, and I don't have much problem with that.

Having said that I can't merge it just yet, because of commit b4614da. Can you please remove this commit - as we'll generate a new build JS file when we publish a new version.

@DingoEatingFuzz
Copy link
Contributor Author

Yep, I can remove that. I wasn't sure what the deal with new builds was.

@keithamus
Copy link
Member

Sorry about that @DingoEatingFuzz; I'll clear this up in the contrib guidelines soon (see #336)

@DingoEatingFuzz
Copy link
Contributor Author

No worries. The commit is gone now 👍

keithamus added a commit that referenced this pull request Jan 2, 2015
Expose the util package through the chai object
@keithamus keithamus merged commit 7e3da21 into chaijs:master Jan 2, 2015
@keithamus
Copy link
Member

👍

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

2 participants