In this recipe, we will design Jasmine tests using
jasmine.any function takes a constructor/class as an expected value. It returns
true if the constructor matches the constructor of the actual value. The
jasmine.objectContaining compares objects with actual key/value pairs.
jasmine.objectContaining so that I can implement a test condition successfully."
Let's consider some scenarios ...