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 assert.deepInclude #78

Merged
merged 1 commit into from
Apr 25, 2011
Merged

add assert.deepInclude #78

merged 1 commit into from
Apr 25, 2011

Conversation

mynyml
Copy link

@mynyml mynyml commented Apr 24, 2011

Like assert.include, but works with collections of objects.

assert.deepInclude([{a:'b'},{c:'d'}], {a:'b'});

If actual isn't an array, defers to assert.include.

Note: had to pull in deepEqual from node/lib/assert.js into utils.deepEqual.

cloudhead pushed a commit that referenced this pull request Apr 25, 2011
add assert.deepInclude
@cloudhead cloudhead merged commit 3802967 into vowsjs:master Apr 25, 2011
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