summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit_node')
-rw-r--r--cli/tests/unit_node/crypto/crypto_cipher_test.ts (renamed from cli/tests/unit_node/crypto_cipher_test.ts)6
-rw-r--r--cli/tests/unit_node/crypto/crypto_hash_test.ts (renamed from cli/tests/unit_node/crypto_hash.ts)2
-rw-r--r--cli/tests/unit_node/crypto/crypto_key_test.ts (renamed from cli/tests/unit_node/crypto_key.ts)2
-rw-r--r--cli/tests/unit_node/crypto/crypto_sign_test.ts (renamed from cli/tests/unit_node/crypto_sign_test.ts)6
4 files changed, 8 insertions, 8 deletions
diff --git a/cli/tests/unit_node/crypto_cipher_test.ts b/cli/tests/unit_node/crypto/crypto_cipher_test.ts
index 2c8cca256..a8a5130cf 100644
--- a/cli/tests/unit_node/crypto_cipher_test.ts
+++ b/cli/tests/unit_node/crypto/crypto_cipher_test.ts
@@ -6,13 +6,13 @@ import { buffer, text } from "node:stream/consumers";
import {
assertEquals,
assertThrows,
-} from "../../../test_util/std/testing/asserts.ts";
+} from "../../../../test_util/std/testing/asserts.ts";
const rsaPrivateKey = Deno.readTextFileSync(
- new URL("./testdata/rsa_private.pem", import.meta.url),
+ new URL("../testdata/rsa_private.pem", import.meta.url),
);
const rsaPublicKey = Deno.readTextFileSync(
- new URL("./testdata/rsa_public.pem", import.meta.url),
+ new URL("../testdata/rsa_public.pem", import.meta.url),
);
const input = new TextEncoder().encode("hello world");
diff --git a/cli/tests/unit_node/crypto_hash.ts b/cli/tests/unit_node/crypto/crypto_hash_test.ts
index fae66e024..679577770 100644
--- a/cli/tests/unit_node/crypto_hash.ts
+++ b/cli/tests/unit_node/crypto/crypto_hash_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { createHash, createHmac } from "node:crypto";
-import { assertEquals } from "../../../test_util/std/testing/asserts.ts";
+import { assertEquals } from "../../../../test_util/std/testing/asserts.ts";
// https://github.com/denoland/deno/issues/18140
Deno.test({
diff --git a/cli/tests/unit_node/crypto_key.ts b/cli/tests/unit_node/crypto/crypto_key_test.ts
index 49d81003f..672c9fa7f 100644
--- a/cli/tests/unit_node/crypto_key.ts
+++ b/cli/tests/unit_node/crypto/crypto_key_test.ts
@@ -13,7 +13,7 @@ import { Buffer } from "node:buffer";
import {
assertEquals,
assertThrows,
-} from "../../../test_util/std/testing/asserts.ts";
+} from "../../../../test_util/std/testing/asserts.ts";
import { createHmac } from "node:crypto";
const generateKeyPairAsync = promisify(
diff --git a/cli/tests/unit_node/crypto_sign_test.ts b/cli/tests/unit_node/crypto/crypto_sign_test.ts
index 9d346e7d0..9988ed71c 100644
--- a/cli/tests/unit_node/crypto_sign_test.ts
+++ b/cli/tests/unit_node/crypto/crypto_sign_test.ts
@@ -3,18 +3,18 @@
import {
assert,
assertEquals,
-} from "../../../test_util/std/testing/asserts.ts";
+} from "../../../../test_util/std/testing/asserts.ts";
import { createSign, createVerify, sign, verify } from "node:crypto";
import { Buffer } from "node:buffer";
const rsaPrivatePem = Buffer.from(
await Deno.readFile(
- new URL("./testdata/rsa_private.pem", import.meta.url),
+ new URL("../testdata/rsa_private.pem", import.meta.url),
),
);
const rsaPublicPem = Buffer.from(
await Deno.readFile(
- new URL("./testdata/rsa_public.pem", import.meta.url),
+ new URL("../testdata/rsa_public.pem", import.meta.url),
),
);