Closed storor closed 8 years ago
Got it, thanks @storor!
Think I would have left jasmine.objectContaining
empty between the parenthesis instead of forcing an object in there. I often use a variable defined earlier in my jasmine.objectContaining
matcher.
Snippets for partial matching, mathcing with any, anything and string matching:
Partial Array Matching with jasmine.arrayContaining:
jasmine.arrayContaining()
: ac⇥Partial matching with jasmine.objectContaining
jasmine.objectContaining({property: value})
: oc⇥String Matching with jasmine.stringMatching
jasmine.stringMatching()
: sm⇥Matching existence with jasmine.anything
jasmine.anything()
: anyt⇥Matching Anything with jasmine.any
jasmine.any()
: any⇥