assertStringIncludes
import { assertStringIncludes } from "jsr:@ende/assert";function
function assertStringIncludes(actual: string, expected: string, msg?: string): voidMake an assertion that actual includes expected. If not then throw.
actual: stringThe actual string to check for inclusion.
expected: stringThe expected string to check for inclusion.
msg?: stringThe optional message to display if the assertion fails.
Example: Usage
import { assertStringIncludes } from "@ende/assert";
assertStringIncludes("Hello", "ello"); // Doesn't throw
assertStringIncludes("Hello", "world"); // Throws