Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/nonstd/Tests/test_deps.ts>assertMatch

A library for useful features that aren't currently in the std library.
Latest
function assertMatch
import { assertMatch } from "https://deno.land/x/nonstd@v0.2.2/Tests/test_deps.ts";

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

Parameters

actual: string
expected: RegExp
optional
msg: string