function assertStringIncludes
assertStringIncludes(): voidDeprecated
(will be removed after 1.0.0) Import from https://deno.land/std/assert/assert_string_includes.ts instead.
Make an assertion that actual includes expected. If not then throw.
Examples
Example 1
Example 1
import { assertStringIncludes } from "@std/testing/asserts"; assertStringIncludes("Hello", "ello"); // Doesn't throw assertStringIncludes("Hello", "world"); // Throws
Parameters
Return Type
void