forked from jasmine/jasmine
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to update ExpectationResults after creating them.
This is to support chained matcher functions. A chain of matcher functions needs to produce a single result. So when a chained matcher executes, it needs to update the message and pass/fail status of an existing expectation result. Three new methods have been added: - ExpectationResult#update. - NestedResults#updateResult - Spec#updateExpectationResult The last of these functions will be called from inside chained matcher functions, instead of #addExpectationResult.
- Loading branch information
1 parent
c87cf71
commit 59bdf0d
Showing
5 changed files
with
135 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters