Make an assertion that actual not match RegExp expected. If match then throw.
actual
expected
Optional
24.7.0
import { assertNotMatch } from "assert";assertNotMatch("Bingosaurus", RegExp(/Raptor/)); // Doesn't throwassertNotMatch("Raptor", RegExp(/Raptor/)); // Throws Copy
import { assertNotMatch } from "assert";assertNotMatch("Bingosaurus", RegExp(/Raptor/)); // Doesn't throwassertNotMatch("Raptor", RegExp(/Raptor/)); // Throws
Make an assertion that
actual
not match RegExpexpected
. If match then throw.