Make an assertion that actual includes expected. If not then throw.
The actual string to check for inclusion.
The expected string to check for inclusion.
Optional
The optional message to display if the assertion fails.
import { assertStringIncludes } from "@std/assert";assertStringIncludes("Hello", "ello"); // Doesn't throwassertStringIncludes("Hello", "world"); // Throws Copy
import { assertStringIncludes } from "@std/assert";assertStringIncludes("Hello", "ello"); // Doesn't throwassertStringIncludes("Hello", "world"); // Throws
Make an assertion that actual includes expected. If not then throw.