This release is versions behind 1.0.19 — the latest version of @std/assert.
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Works with
•JSR Score100%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




Downloads20,710/wk
•Published2 years ago (1.0.6)
Common assertion functions, especially useful for testing
- LICENSE1 KB
- almost_equals.ts2 KB
- almost_equals_test.ts2 KB
- array_includes.ts2 KB
- array_includes_test.ts2 KB
- assert.ts680 B
- assert_test.ts404 B
- assertion_error.ts842 B
- assertion_error_test.ts391 B
- deno.json1 KB
- equal.ts5 KB
- equal_test.ts11 KB
- equals.ts2 KB
- equals_test.ts5 KB
- exists.ts937 B
- exists_test.ts1 KB
- fail.ts598 B
- fail_test.ts348 B
- false.ts776 B
- false_test.ts564 B
- greater.ts1 KB
- greater_or_equal.ts1 KB
- greater_or_equal_test.ts470 B
- greater_test.ts467 B
- instance_of.ts2 KB
- instance_of_test.ts4 KB
- is_error.ts2 KB
- is_error_test.ts2 KB
- less.ts967 B
- less_or_equal.ts1 KB
- less_or_equal_test.ts283 B
- less_test.ts270 B
- match.ts906 B
- match_test.ts836 B
- mod.ts1 KB
- not_equals.ts1 KB
- not_equals_test.ts920 B
- not_instance_of.ts1 KB
- not_instance_of_test.ts1 KB
- not_match.ts926 B
- not_match_test.ts827 B
- not_strict_equals.ts1 KB
- not_strict_equals_test.ts815 B
- object_match.ts6 KB
- object_match_test.ts11 KB
- rejects.ts4 KB
- rejects_test.ts4 KB
- strict_equals.ts2 KB
- strict_equals_test.ts2 KB
- string_includes.ts954 B
- string_includes_test.ts1 KB
- throws.ts3 KB
- throws_test.ts4 KB
- unimplemented.ts621 B
- unimplemented_test.ts471 B
- unreachable.ts591 B
- unreachable_test.ts371 B
- unstable_never.ts3 KB
- unstable_never_test.ts715 B