Removed toMatch and toNotMatch's message functions, now sufficiently handled by the default message builder.

This commit is contained in:
Christian Williams
2009-11-12 15:43:49 -05:00
parent 7be8247b2f
commit 5a8a050c46
2 changed files with 3 additions and 14 deletions

View File

@@ -112,9 +112,6 @@ jasmine.Matchers.prototype.toNotEqual = jasmine.Matchers.matcherFn_('toNotEqual'
jasmine.Matchers.prototype.toMatch = jasmine.Matchers.matcherFn_('toMatch', {
test: function(expected) {
return new RegExp(expected).test(this.actual);
},
message: function(expected) {
return jasmine.pp(this.actual) + " does not match the regular expression " + new RegExp(expected).toString();
}
});
@@ -125,9 +122,6 @@ jasmine.Matchers.prototype.toMatch = jasmine.Matchers.matcherFn_('toMatch', {
jasmine.Matchers.prototype.toNotMatch = jasmine.Matchers.matcherFn_('toNotMatch', {
test: function(expected) {
return !(new RegExp(expected).test(this.actual));
},
message: function(expected) {
return jasmine.pp(this.actual) + " should not match " + new RegExp(expected).toString();
}
});