In the first Jasmine example, we used the toEqual
and toThrow
Jasmine Matchers. In the following table, some of the other built-in matchers provided by Jasmine are explained briefly:
Adding to built-in matchers, you can create your own Jasmine custom matcher. To create your own Jasmine custom matcher, check the Jasmine 2.0 custom matcher documentation page at http://jasmine.github.io/2.0/custom_matcher.html.
3.143.247.53