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

x/dtils/deps.ts>asserts.assertStringIncludes

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

Make an assertion that actual includes expected. If not then throw.

Parameters

actual: string
expected: string
optional
msg: string