assertStringNotIncludes
assertStringNotIncludes
Section titled “assertStringNotIncludes”Assert that a string does not include a given substring, with type narrowing.
import { assertStringNotIncludes } from "@kensio/smartass";
const message: string = "Upload success";
assertStringNotIncludes(message, "error");
// message is now narrowed to a string not including "error"Source
Section titled “Source”Source file: src/assert/string-not-includes/string-not-includes.assert.ts
