You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of today the throwError matcher accepts arguments of type being either:
a regexp
a function
Personally I find myself quite often matching the error message literally and in this case escaping regexp special chars is a bit of chore. Could we also accept strings as arguments and use the == / === operator to match this string against the error message?
This would definitivelly make my life a bit easier, happy to send a pull request if this meakes sense.
The text was updated successfully, but these errors were encountered:
As of today the
throwError
matcher accepts arguments of type being either:Personally I find myself quite often matching the error message literally and in this case escaping regexp special chars is a bit of chore. Could we also accept strings as arguments and use the == / === operator to match this string against the error message?
This would definitivelly make my life a bit easier, happy to send a pull request if this meakes sense.
The text was updated successfully, but these errors were encountered: