Skip to content

Commit

Permalink
Log actual type
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Aug 16, 2013
1 parent 50db224 commit 03ad55f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -106,7 +106,8 @@
return this.ok( a === b, msg )
},
type: function(thing, expected, msg) {
return this.ok( type(thing) === expected, msg || "type should be " + expected )
var t = type(thing)
return this.ok( t === expected, msg || "type should be " + expected + ", got " + t )
},
result: function(num) {
var fail = this.failed.length
Expand Down

0 comments on commit 03ad55f

Please sign in to comment.