From 5776905de6e0615f5afe24ae693628f8f504859b Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Tue, 29 Jan 2013 16:01:16 -0500 Subject: [PATCH] Only print PASS when failed test count == 0. Or is that === 0? --- phantom-driver.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phantom-driver.js b/phantom-driver.js index 6e4c18e..9b98fdf 100644 --- a/phantom-driver.js +++ b/phantom-driver.js @@ -179,8 +179,9 @@ RunAllAutoTests(function(num_failing, num_passing) { if (num_failing !== 0) { console.log('FAIL'); phantom.exit(); + } else { + console.log('PASS'); } - console.log('PASS'); phantom.exit(); // This is not yet reliable enough to be useful: -- 2.7.4