Skip to content

Commit

Permalink
types: Don't consider null to be an object.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Aug 18, 2014
1 parent 8c4806f commit 704198f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ var extend = utils.extend;
module.exports = function (expect) {
expect.addType({
name: 'object',
identify: function (arr) {
return typeof arr === 'object';
identify: function (obj) {
return obj && typeof obj === 'object';
},
equal: function (a, b, equal) {
if (a === b) {
Expand Down

0 comments on commit 704198f

Please sign in to comment.