Remove deprecated class jasmine.Reporters.
Fully deprecate old-style Matchers; will be removed in next major version.
This commit is contained in:
@@ -523,22 +523,6 @@ describe("jasmine.Matchers", function() {
|
||||
match(false).not.custom();
|
||||
expect(lastResult().message).toEqual("Passed.");
|
||||
});
|
||||
|
||||
it("should make old-style custom matchers blow up, but only when negated", function() {
|
||||
spec.addMatchers({
|
||||
custom: function() {
|
||||
this.report();
|
||||
}
|
||||
});
|
||||
|
||||
expect(function() {
|
||||
match(true).custom();
|
||||
}).not.toThrow();
|
||||
|
||||
expect(function() {
|
||||
match(true).not.custom();
|
||||
}).toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe("spy matchers >>", function() {
|
||||
|
||||
Reference in New Issue
Block a user