summaryrefslogtreecommitdiff
path: root/tests/registry/jsr/@std/assert/1.0.0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/registry/jsr/@std/assert/1.0.0')
-rw-r--r--tests/registry/jsr/@std/assert/1.0.0/assert.ts4
-rw-r--r--tests/registry/jsr/@std/assert/1.0.0/assert_equals.ts9
-rw-r--r--tests/registry/jsr/@std/assert/1.0.0/fail.ts5
-rw-r--r--tests/registry/jsr/@std/assert/1.0.0/mod.ts22
4 files changed, 40 insertions, 0 deletions
diff --git a/tests/registry/jsr/@std/assert/1.0.0/assert.ts b/tests/registry/jsr/@std/assert/1.0.0/assert.ts
new file mode 100644
index 000000000..8c20c347a
--- /dev/null
+++ b/tests/registry/jsr/@std/assert/1.0.0/assert.ts
@@ -0,0 +1,4 @@
+// deno-lint-ignore-file
+export function assert(expr: unknown) {
+ return true;
+}
diff --git a/tests/registry/jsr/@std/assert/1.0.0/assert_equals.ts b/tests/registry/jsr/@std/assert/1.0.0/assert_equals.ts
new file mode 100644
index 000000000..bd58194d0
--- /dev/null
+++ b/tests/registry/jsr/@std/assert/1.0.0/assert_equals.ts
@@ -0,0 +1,9 @@
+// deno-lint-ignore-file
+export function assertEquals<T>(
+ actual: T,
+ expected: T,
+ msg?: string,
+ options: { formatter?: (value: unknown) => string } = {},
+) {
+ return true;
+}
diff --git a/tests/registry/jsr/@std/assert/1.0.0/fail.ts b/tests/registry/jsr/@std/assert/1.0.0/fail.ts
new file mode 100644
index 000000000..6c21edda5
--- /dev/null
+++ b/tests/registry/jsr/@std/assert/1.0.0/fail.ts
@@ -0,0 +1,5 @@
+// deno-lint-ignore-file
+
+export function fail() {
+ return true;
+}
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";