Skip to content
Advertisement

Tag: karma-jasmine

jasmine partial string matching

I love the partial object matching that jasmine.objectContaining provides: Is there a jasmine equivalent for strings? something along the lines of: I’d like to look at a specific argument without resorting to assertions off mySpy.calls: Answer There isn’t anything of this sort in Jasmine. But you can leverage the ability of creating a custom matcher in Jasmine for this. Here’s

Advertisement