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

x/gfm/test/test_deps.ts>assertStringIncludes

Server-side GitHub Flavored Markdown rendering for Deno
Latest
function assertStringIncludes
import { assertStringIncludes } from "https://deno.land/x/gfm@0.6.0/test/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