Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/deps.ts>asserts.assertMatch

The best unofficial library of utilities for Deno applications
Go to Latest
function asserts.assertMatch
import { asserts } from "https://deno.land/x/dtils@1.3.1/deps.ts";
const { assertMatch } = asserts;

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

Parameters

actual: string
expected: RegExp
optional
msg: string