doesNotMatch

View Source

Summary

Asserts that string does not match the given regexp.

Signature

function doesNotMatch(string: string, regexp: RegExp, message: string): void;

Example

assert.doesNotMatch(html, /Error/)

Params

string

The string to test.

regexp

The pattern that must not match.

message

Optional failure message.