Skip to content

Commit

Permalink
test: add CryptoKey to tests globalThis
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Dec 7, 2023
1 parent 755c345 commit 912a80e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/setup/globals.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Object.defineProperty(globalThis, 'crypto', {
Object.defineProperty(globalThis, "crypto", {
value: {
subtle: require('crypto').subtle,
}
subtle: require("crypto").subtle,
},
});

Object.defineProperty(globalThis, "CryptoKey", {
value: require("crypto").webcrypto.CryptoKey,
});

0 comments on commit 912a80e

Please sign in to comment.