Skip to content

remix/assert · Function

View Source

doesNotMatch

Summary

Asserts that string does not match the given regexp.

Signature

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

Example

assert.doesNotMatch(html, /Error/)

Parameters

string

The string to test.

regexp

The pattern that must not match.

message

Optional failure message.