forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error messages in expect().toThrow(message) (facebook#48430)
Summary: Changelog: [internal] This expectation currently prints a very generic message that is hard to parse, so this change improves it a bit to account for more cases. E.g.: * Before: "Expected <function> to throw" * After: "Expected <function> to throw with message 'foo', but threw with message 'bar'" Differential Revision: D67738146
1 parent
93117ea
commit 41ef7fd
Showing
1 changed file
with
25 additions
and
6 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