From fb320c4c5955570855e18052cd83156e199830fe Mon Sep 17 00:00:00 2001 From: David Majda Date: Thu, 2 Apr 2015 14:32:31 +0200 Subject: [PATCH] Fix small errors in Jasmine matcher messages --- spec/unit/compiler/passes/helpers.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/unit/compiler/passes/helpers.js b/spec/unit/compiler/passes/helpers.js index 064b249..74ef3a3 100644 --- a/spec/unit/compiler/passes/helpers.js +++ b/spec/unit/compiler/passes/helpers.js @@ -63,8 +63,8 @@ beforeEach(function() { this.actual(ast); this.message = function() { - return "Expected the pass to report an error" - + (details ? " with details " + jasmine.pp(details) : "") + ", " + return "Expected the pass to report an error " + + (details ? "with details " + jasmine.pp(details) + " ": "") + "for grammar " + jasmine.pp(grammar) + ", " + "but it didn't."; }; @@ -79,7 +79,7 @@ beforeEach(function() { if (this.isNot) { this.message = function() { - return "Expected the pass not to report an error" + return "Expected the pass not to report an error " + "for grammar " + jasmine.pp(grammar) + ", " + "but it did."; }; @@ -89,8 +89,8 @@ beforeEach(function() { if (details.hasOwnProperty(key)) { if (!this.env.equals_(e[key], details[key])) { this.message = function() { - return "Expected the pass to report an error" - + (details ? " with details " + jasmine.pp(details) : "") + ", " + return "Expected the pass to report an error " + + "with details " + jasmine.pp(details) + " " + "for grammar " + jasmine.pp(grammar) + ", " + "but " + jasmine.pp(key) + " " + "is " + jasmine.pp(e[key]) + ".";