Go to repository

Function toHaveSubstring

Answer if the actual value has expected as a substring.

Parameters

  • actual: string
  • expected: string

Returns boolean