mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
657698e48d
Currently, `waitForThrow` tries to diff the expected value against the thrown value if it doesn't match. However if the expectation is a string, we are not diffing against the thrown message. This commit makes it so if we are matching against message we also diff against message.