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

x/hex/src/lib/stdx/mod.ts>testing.asserts.assertMatch

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function testing.asserts.assertMatch
import { testing } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/mod.ts";
const { assertMatch } = testing.asserts;

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

Parameters

actual: string
expected: RegExp
optional
msg: string