Skip to main content
Module

x/esbuild_deno_loader/test_deps.ts>assertStringIncludes

Deno module resolution for `esbuild`
Latest
function assertStringIncludes
import { assertStringIncludes } from "https://deno.land/x/esbuild_deno_loader@0.9.0/test_deps.ts";

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

Examples

Example 1

import { assertStringIncludes } from "https://deno.land/std@0.224.0/assert/assert_string_includes.ts";

assertStringIncludes("Hello", "ello"); // Doesn't throw
assertStringIncludes("Hello", "world"); // Throws

Parameters

actual: string
expected: string
optional
msg: string