Not very many people know, that Jasmine provides you an ability to customize the result of equality check, which is internally used in toEqual, toHaveBeenCalledWith, and other matchers. Basically, it means that if the right-side object has an asymmetricMatch method, the result if its call will be used instead of…