Fix small errors in Jasmine matcher messages

redux
David Majda 9 years ago
parent d7fc0b5c3b
commit fb320c4c59

@ -64,7 +64,7 @@ beforeEach(function() {
this.message = function() { this.message = function() {
return "Expected the pass to report an error " return "Expected the pass to report an error "
+ (details ? " with details " + jasmine.pp(details) : "") + ", " + (details ? "with details " + jasmine.pp(details) + " ": "")
+ "for grammar " + jasmine.pp(grammar) + ", " + "for grammar " + jasmine.pp(grammar) + ", "
+ "but it didn't."; + "but it didn't.";
}; };
@ -90,7 +90,7 @@ beforeEach(function() {
if (!this.env.equals_(e[key], details[key])) { if (!this.env.equals_(e[key], details[key])) {
this.message = function() { this.message = function() {
return "Expected the pass to report an error " return "Expected the pass to report an error "
+ (details ? " with details " + jasmine.pp(details) : "") + ", " + "with details " + jasmine.pp(details) + " "
+ "for grammar " + jasmine.pp(grammar) + ", " + "for grammar " + jasmine.pp(grammar) + ", "
+ "but " + jasmine.pp(key) + " " + "but " + jasmine.pp(key) + " "
+ "is " + jasmine.pp(e[key]) + "."; + "is " + jasmine.pp(e[key]) + ".";

Loading…
Cancel
Save