How to expect string to contain substring in jasmine test


#1

how to expect string to contain substring in jasmine test?


#2

expect(str).toMatch('substr')
toMatch uses regular expression