diff --git a/test/assertions.js b/test/assertions.js index 590219b8a5..17c3ef6b22 100644 --- a/test/assertions.js +++ b/test/assertions.js @@ -10,7 +10,7 @@ exports.mixinMochaAssertions = function(expect) { Object.prototype.toString.call(v) === '[object Object]' && typeof v.output === 'string' && typeof v.code === 'number' && - Object.keys(v).length === 2 + Array.isArray(v.args) ); } })