Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denoexec/deps.ts>testing.assertMatch

A higher level wrapper around https://doc.deno.land/builtin/stable#Deno.run
Latest
function testing.assertMatch
import { testing } from "https://deno.land/x/denoexec@v1.1.5/deps.ts";
const { assertMatch } = testing;

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

Parameters

actual: string
expected: RegExp
optional
msg: string