diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-02-13 13:05:10 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 02:05:10 +0000 |
commit | 92f61882531a0dfa2bd57ab0804daec88721760b (patch) | |
tree | 29be9e4401437f842a0c4630781a3283d0ab6bb1 /tests/unit_node/internal | |
parent | d236fc8b434a997f3588f673c5841b18ebdd8086 (diff) |
chore: use `@std` import instead of `@test_util/std` (#22398)
This PR:
1. Replaces `@test_util/std`-prefixed imports with `@std`.
2. Adds `@std/` import map entries to a few `deno.json` files.
Diffstat (limited to 'tests/unit_node/internal')
-rw-r--r-- | tests/unit_node/internal/_randomBytes_test.ts | 2 | ||||
-rw-r--r-- | tests/unit_node/internal/_randomFill_test.ts | 2 | ||||
-rw-r--r-- | tests/unit_node/internal/_randomInt_test.ts | 2 | ||||
-rw-r--r-- | tests/unit_node/internal/pbkdf2_test.ts | 2 | ||||
-rw-r--r-- | tests/unit_node/internal/scrypt_test.ts | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit_node/internal/_randomBytes_test.ts b/tests/unit_node/internal/_randomBytes_test.ts index 13ee82566..4d6f5c39a 100644 --- a/tests/unit_node/internal/_randomBytes_test.ts +++ b/tests/unit_node/internal/_randomBytes_test.ts @@ -4,7 +4,7 @@ import { assertEquals, assertRejects, assertThrows, -} from "@test_util/std/assert/mod.ts"; +} from "@std/assert/mod.ts"; import { assertCallbackErrorUncaught } from "../_test_utils.ts"; import { pseudoRandomBytes, randomBytes } from "node:crypto"; diff --git a/tests/unit_node/internal/_randomFill_test.ts b/tests/unit_node/internal/_randomFill_test.ts index d85569960..438e6e42d 100644 --- a/tests/unit_node/internal/_randomFill_test.ts +++ b/tests/unit_node/internal/_randomFill_test.ts @@ -5,7 +5,7 @@ import { assertEquals, assertNotEquals, assertThrows, -} from "@test_util/std/assert/mod.ts"; +} from "@std/assert/mod.ts"; const validateNonZero = (buf: Buffer) => { if (!buf.some((ch) => ch > 0)) throw new Error("Error"); diff --git a/tests/unit_node/internal/_randomInt_test.ts b/tests/unit_node/internal/_randomInt_test.ts index 2639f77ce..1d2610268 100644 --- a/tests/unit_node/internal/_randomInt_test.ts +++ b/tests/unit_node/internal/_randomInt_test.ts @@ -1,6 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import { randomInt } from "node:crypto"; -import { assert, assertThrows } from "@test_util/std/assert/mod.ts"; +import { assert, assertThrows } from "@std/assert/mod.ts"; const between = (x: number, min: number, max: number) => x >= min && x < max; diff --git a/tests/unit_node/internal/pbkdf2_test.ts b/tests/unit_node/internal/pbkdf2_test.ts index 019e76dcd..6a428b037 100644 --- a/tests/unit_node/internal/pbkdf2_test.ts +++ b/tests/unit_node/internal/pbkdf2_test.ts @@ -1,6 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import { pbkdf2, pbkdf2Sync } from "node:crypto"; -import { assert, assertEquals } from "@test_util/std/assert/mod.ts"; +import { assert, assertEquals } from "@std/assert/mod.ts"; type Algorithms = | "md5" diff --git a/tests/unit_node/internal/scrypt_test.ts b/tests/unit_node/internal/scrypt_test.ts index bd846ba8d..c128abb92 100644 --- a/tests/unit_node/internal/scrypt_test.ts +++ b/tests/unit_node/internal/scrypt_test.ts @@ -1,7 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import { scrypt, scryptSync } from "node:crypto"; import { Buffer } from "node:buffer"; -import { assertEquals } from "@test_util/std/assert/mod.ts"; +import { assertEquals } from "@std/assert/mod.ts"; Deno.test("scrypt works correctly", async () => { const { promise, resolve } = Promise.withResolvers<boolean>(); |