Make an assertion that actual includes expected. If not then throw.
Optional
24.7.0
import { assertStringIncludes } from "assert";assertStringIncludes("Hello", "ello"); // Doesn't throwassertStringIncludes("Hello", "world"); // Throws Copy
import { assertStringIncludes } from "assert";assertStringIncludes("Hello", "ello"); // Doesn't throwassertStringIncludes("Hello", "world"); // Throws
Make an assertion that actual includes expected. If not then throw.