From 91244aba321260be76384a09799b90fbad0689b2 Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Thu, 19 Jul 2012 20:57:52 +0200 Subject: [PATCH] Ensure the description is always a String. (Fixes #70) --- lib/guard/jasmine/phantomjs/src/reporter.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/guard/jasmine/phantomjs/src/reporter.coffee b/lib/guard/jasmine/phantomjs/src/reporter.coffee index 073397f..2c62af5 100644 --- a/lib/guard/jasmine/phantomjs/src/reporter.coffee +++ b/lib/guard/jasmine/phantomjs/src/reporter.coffee @@ -32,7 +32,7 @@ class ConsoleReporter unless spec.results().skipped specResult = { id: spec.id - description: spec.description + description: '' + spec.description passed: spec.results().failedCount is 0 } @@ -54,7 +54,7 @@ class ConsoleReporter suiteResult = { id: suite.id parent: suite.parentSuite?.id - description: suite.description + description: '' + suite.description passed: suite.results().failedCount is 0 specs: @currentSpecs[suite.id] || [] suites: []