aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/crypto/crypto.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/node/crypto/crypto.test.ts')
-rw-r--r--test/js/node/crypto/crypto.test.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/js/node/crypto/crypto.test.ts b/test/js/node/crypto/crypto.test.ts
index d8bfe5353..b1b8646f3 100644
--- a/test/js/node/crypto/crypto.test.ts
+++ b/test/js/node/crypto/crypto.test.ts
@@ -1,6 +1,6 @@
import { sha, MD5, MD4, SHA1, SHA224, SHA256, SHA384, SHA512, SHA512_256, gc, CryptoHasher } from "bun";
import { it, expect, describe } from "bun:test";
-
+import crypto from "crypto";
const HashClasses = [MD5, MD4, SHA1, SHA224, SHA256, SHA384, SHA512, SHA512_256];
describe("CryptoHasher", () => {
@@ -109,6 +109,13 @@ describe("CryptoHasher", () => {
}
});
+describe("crypto.getCurves", () => {
+ it("should return an array of strings", () => {
+ expect(Array.isArray(crypto.getCurves())).toBe(true);
+ expect(typeof crypto.getCurves()[0]).toBe("string");
+ });
+});
+
describe("crypto", () => {
for (let Hash of HashClasses) {
for (let [input, label] of [