Verify exact strings in tests
This approach gives us two things: 1. Exact strings are verified, rather than more loosely checking for a substring 2. Should the string change in future, these tests no longer have to change. The purpose of them is to verify that some constant is returned, but they don't care what that constant actually contains.
Showing
Please register or sign in to comment