diff options
Diffstat (limited to 'tests/registry/jsr/@std/assert/1.0.0/mod.ts')
-rw-r--r-- | tests/registry/jsr/@std/assert/1.0.0/mod.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/registry/jsr/@std/assert/1.0.0/mod.ts b/tests/registry/jsr/@std/assert/1.0.0/mod.ts new file mode 100644 index 000000000..fdcb56c8c --- /dev/null +++ b/tests/registry/jsr/@std/assert/1.0.0/mod.ts @@ -0,0 +1,22 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +/** A library of assertion functions. + * If the assertion is false an `AssertionError` will be thrown which will + * result in pretty-printed diff of failing assertion. + * + * This module is browser compatible, but do not rely on good formatting of + * values for AssertionError messages in browsers. + * + * ```ts + * import { assert } from "@std/assert/assert"; + * + * assert("I am truthy"); // Doesn't throw + * assert(false); // Throws `AssertionError` + * ``` + * + * @module + */ + +export * from "./assert_equals.ts"; +export * from "./assert.ts"; +export * from "./fail.ts"; |