mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
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.