From 9fb4ae2a9a8ad8d73a692169cd09772cf551b8af Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 2 Jul 2013 16:09:19 -0400 Subject: [PATCH] Tests: more targeted log capture setup @Ventero pointed out that functions also have a length property --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 51d2a33b..e117df73 100644 --- a/test/test.js +++ b/test/test.js @@ -89,7 +89,7 @@ error: [], reset: function () { for (var i in testLog) { - if (testLog.hasOwnProperty(i) && 'length' in testLog[i]) { + if (testLog.hasOwnProperty(i) && 'length' in testLog[i] && 'push' in testLog[i]) { testLog[i].length = 0; } }