diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-14 13:22:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-14 13:22:43 -0400 |
commit | 8754a01d43782654c3d32945f6d58f7a40c01b69 (patch) | |
tree | 0a9efcd2e195a6194134b98373ddccdac9c8e991 /tests/registry | |
parent | e0cfc9da39e1d05e6a95c89c41cff8ae34fcbd66 (diff) |
fix(init): use bare specifier for `jsr:@std/assert` (#24581)
Closes #24580
Diffstat (limited to 'tests/registry')
-rw-r--r-- | tests/registry/jsr/@std/assert/1.0.0/assert.ts | 4 | ||||
-rw-r--r-- | tests/registry/jsr/@std/assert/1.0.0/assert_equals.ts | 9 | ||||
-rw-r--r-- | tests/registry/jsr/@std/assert/1.0.0/fail.ts | 5 | ||||
-rw-r--r-- | tests/registry/jsr/@std/assert/1.0.0/mod.ts | 22 | ||||
-rw-r--r-- | tests/registry/jsr/@std/assert/1.0.0_meta.json | 8 | ||||
-rw-r--r-- | tests/registry/jsr/@std/assert/meta.json | 3 |
6 files changed, 50 insertions, 1 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"; diff --git a/tests/registry/jsr/@std/assert/1.0.0_meta.json b/tests/registry/jsr/@std/assert/1.0.0_meta.json new file mode 100644 index 000000000..3ca2db93a --- /dev/null +++ b/tests/registry/jsr/@std/assert/1.0.0_meta.json @@ -0,0 +1,8 @@ +{ + "exports": { + ".": "./mod.ts", + "./assert": "./assert.ts", + "./assert-equals": "./assert-equals.ts", + "./fail": "./fail.ts" + } +} diff --git a/tests/registry/jsr/@std/assert/meta.json b/tests/registry/jsr/@std/assert/meta.json index 4bb721c89..419b83587 100644 --- a/tests/registry/jsr/@std/assert/meta.json +++ b/tests/registry/jsr/@std/assert/meta.json @@ -1,8 +1,9 @@ { "scope": "std", "name": "assert", - "latest": "0.220.1", + "latest": "1.0.0", "versions": { + "1.0.0": {}, "0.220.1": {} } } |