From d3571edcec257be85e22c69c0d02c8a28c998dbe Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Mon, 14 Jan 2019 20:49:45 -0800 Subject: [PATCH] fix broken assertions; remove key length check for maintainability's sake --- test/assertions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ); } })