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
Downloads89,123/wk
•Published3 months ago (1.0.19)
Common assertion functions, especially useful for testing
- @std/assert
strict-equals
- 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
assertStrictEquals<T>(): asserts actual is T
actual: unknown,
expected: T,
msg?: string
Make an assertion that actual and expected are strictly equal, using
Object.is for equality comparison. If not, then throw.