Skip to content

Commit

Permalink
fixed assert.include on objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed May 12, 2010
1 parent e43aa0e commit d79b6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vows/macros.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ assert.matches = assert.match;
assert.include = function (actual, expected, message) {
if ((function (obj) {
if (isArray(obj) || isString(obj)) {
return obj.indexOf(expected) === -1
return obj.indexOf(expected) === -1;
} else if (isObject(actual)) {
return ! obj.hasOwnProperty(item);
return ! obj.hasOwnProperty(expected);
}
return false;
})(actual)) {
Expand Down

0 comments on commit d79b6d5

Please sign in to comment.