We might need some assertions other than equal. Let’s expand our test suite to be more descriptive and versatile.
.emptymethod checks for empty objects, arrays, or strings
.emptymakes it easy to write expectations without worrying about how the real code will work
- You call arrays that look the same “deeply equal”, because their “deep” internal values are equal
.deepmethod allows you to make deep equality comparisons
You need to sign up for Treehouse in order to download course files.Sign up