diff options
Diffstat (limited to 'test/bun.js/node-crypto.test.js')
-rw-r--r-- | test/bun.js/node-crypto.test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/bun.js/node-crypto.test.js b/test/bun.js/node-crypto.test.js index 5d9d6a77d..f148f4fe9 100644 --- a/test/bun.js/node-crypto.test.js +++ b/test/bun.js/node-crypto.test.js @@ -21,3 +21,9 @@ it("crypto.createHmac", () => { expect(result).toBe("bp7ym3X//Ft6uuUn1Y/a2y/kLnIZARl2kXNDBl9Y7Uo="); }); + +it("web crypto", async () => { + let bytes = new Uint8Array(32); + crypto.getRandomValues(bytes); + await crypto.subtle.digest("SHA-256", bytes); +}); |