Skip to content

Commit

Permalink
- fixing typo in macros:must reference isNotEnumerable
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance authored and indexzero committed Dec 3, 2014
1 parent 6ac449b commit 17865c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/assert/macros.js
Expand Up @@ -103,9 +103,9 @@ assert.isEnumerable = function (obj, key, message) {
};

assert.isNotEnumerable = function (obj, key, message) {
assertMissingArguments(arguments, assert.isEnumerable);
assertTypeOf(obj, "object", null, assert.isEnumerable);
assertTypeOf(key, "string", null, assert.isEnumerable);
assertMissingArguments(arguments, assert.isNotEnumerable);
assertTypeOf(obj, "object", null, assert.isNotEnumerable);
assertTypeOf(key, "string", null, assert.isNotEnumerable);
if (typeof(obj[key]) == "undefined") {
assert.fail(null, null, "key '" + key + "' was never defined", "isNotEnumerable", assert.isNotEnumerable);
}
Expand Down

0 comments on commit 17865c8

Please sign in to comment.