-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assert: Report RegExp/Error as strings from rejects()/throws()
Report the `actual` (Error object) as a string. And report an `expected` RegExp or Error object also in its string form. Currently, they were reported as their objects, which in the generic js-reporters module was just printed as an empty object without any properties because instances of RegExp and instances of Error both have no own properties that are enumerable. Also fix errorString() which oddly had logic for passing a plain object, but didn't Fixes #1333.
- Loading branch information
Showing
3 changed files
with
26 additions
and
10 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