Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdWorks with
•JSR Score100%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




License
•MIT
Downloads7,543/wk
•Published2 months ago (1.0.19)
Common assertion functions, especially useful for testing
- @std/assert
array-includes
- all symbols
- default
- almost-equals
- array-includes
- assert
- assertion-error
- equal
- equals
- exists
- fail
- false
- greater
- greater-or-equal
- instance-of
- is-error
- less
- less-or-equal
- match
- not-equals
- not-instance-of
- not-match
- not-strict-equals
- object-match
- rejects
- strict-equals
- string-includes
- throws
- unimplemented
- unreachable
- unstable-equals
- unstable-never
- unstable-strict-equals
Functions
f
assertArrayIncludes<T>(): void
actual: ArrayLikeArg<T>,
expected: ArrayLikeArg<T>,
msg?: string
Asserts that actual contains all values in expected, using deep equality
for non-primitive values.
Type Aliases
T
ArrayLikeArg<T> = ArrayLike<T> & object
An array-like object (Array, Uint8Array, NodeList, etc.) that is not a string