Skip to main content
The Deno 2 Release Candidate is here
Learn more
function assertMatch
import { assertMatch } from "https://deno.land/x/shutdown_aware_transform_stream@1.0.0/dev_deps.ts";

Make an assertion that actual match RegExp expected. If not then throw.

Parameters

actual: string
expected: RegExp
optional
msg: string