buildExpectationResult now returns a data object.
- Meant for passing to reporters.
This commit is contained in:
@@ -13,10 +13,10 @@ describe("MatchersSpec - HTML Dependent", function () {
|
||||
|
||||
this.addMatchers({
|
||||
toPass: function() {
|
||||
return lastResult().passed();
|
||||
return lastResult().passed;
|
||||
},
|
||||
toFail: function() {
|
||||
return !lastResult().passed();
|
||||
return !lastResult().passed;
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -35,4 +35,4 @@ describe("MatchersSpec - HTML Dependent", function () {
|
||||
expect((match(nodeA).toEqual(nodeA))).toPass();
|
||||
expect((match(nodeA).toEqual(nodeB))).toFail();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -130,7 +130,7 @@ describe("TrivialReporter", function() {
|
||||
});
|
||||
|
||||
it("should add the failure message to the DOM (non-toEquals matchers)", function() {
|
||||
expectationResult = new jasmine.ExpectationResult({
|
||||
expectationResult = jasmine.buildExpectationResult({
|
||||
matcherName: "toBeNull", passed: false, message: "Expected 'a' to be null, but it was not"
|
||||
});
|
||||
|
||||
@@ -144,7 +144,7 @@ describe("TrivialReporter", function() {
|
||||
});
|
||||
|
||||
it("should add the failure message to the DOM (non-toEquals matchers) html escaping", function() {
|
||||
expectationResult = new jasmine.ExpectationResult({
|
||||
expectationResult = jasmine.buildExpectationResult({
|
||||
matcherName: "toBeNull", passed: false, message: "Expected '1 < 2' to <b>e null, & it was not"
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user