From beb3ece28f8d29cfeefa721b20ea1e9b9a86c375 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Wed, 21 Sep 2016 13:18:17 +0200 Subject: [PATCH] Use the function type as the base for spy. --- lib/unexpected-sinon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/unexpected-sinon.js b/lib/unexpected-sinon.js index 8274757..b144317 100644 --- a/lib/unexpected-sinon.js +++ b/lib/unexpected-sinon.js @@ -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);