From de536fc9532f30c00086d0e96c27ea480a25adfc Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 26 Oct 2022 16:29:23 -0700 Subject: Make these tests better --- test/bun.js/web-crypto.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/bun.js') diff --git a/test/bun.js/web-crypto.test.ts b/test/bun.js/web-crypto.test.ts index 22f69f43b..72730f8ff 100644 --- a/test/bun.js/web-crypto.test.ts +++ b/test/bun.js/web-crypto.test.ts @@ -3,8 +3,8 @@ import { describe, expect, it } from "bun:test"; describe("Web Crypto", () => { it("has globals", () => { expect(crypto.subtle !== undefined).toBe(true); - expect(CryptoKey !== undefined).toBe(true); - expect(SubtleCrypto !== undefined).toBe(true); + expect(CryptoKey.name).toBe("CryptoKey"); + expect(SubtleCrypto.name).toBe("SubtleCrypto"); }); it("should encrypt and decrypt", async () => { const key = await crypto.subtle.generateKey( -- cgit v1.2.3