Skip to content

Commit

Permalink
Keep jasmine.Matchers.pp() but throw an error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
xian committed Mar 6, 2010
1 parent a661e77 commit 23d5c71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Matchers.js
Expand Up @@ -12,6 +12,10 @@ jasmine.Matchers = function(env, actual, spec, opt_isNot) {
this.reportWasCalled_ = false;
};

jasmine.Matchers.pp = function(str) {
throw new Error("jasmine.Matchers.pp() is no longer supported, please use jasmine.pp() instead!");
};

/** @deprecated */
jasmine.Matchers.prototype.report = function(result, failing_message, details) {
// todo: report a deprecation warning [xw]
Expand Down

0 comments on commit 23d5c71

Please sign in to comment.