Skip to content

Commit

Permalink
test: update isObject helper
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Sep 18, 2018
1 parent cf4efa8 commit 47e886e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Object.assign(tape.Test.prototype, {
this.ok(Array.isArray(val), msg);
},
isObject(val, msg) {
this.ok(Boolean(val) && (val.constructor === Object), msg);
this.is(Object.prototype.toString.call(val), '[object Object]', msg);
},
isFunction(val, msg) {
this.is(typeof val, 'function', msg);
Expand Down

0 comments on commit 47e886e

Please sign in to comment.