Skip to content

Commit

Permalink
Use the function type as the base for spy.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Sep 21, 2016
1 parent 3cfd668 commit beb3ece
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/unexpected-sinon.js
Expand Up @@ -232,6 +232,7 @@

expect.addType({
name: 'spy',
base: 'function',
identify: isSpy,
inspect: function (value, depth, output) {
var idNum = parseInt(value.id.substr(4), 10);
Expand Down

0 comments on commit beb3ece

Please sign in to comment.