Skip to content

Commit

Permalink
Inject webcrypto into global object for key-did tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Jul 3, 2024
1 parent e74f7cf commit 3ea17e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/key-did/test/lib.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { webcrypto } from 'node:crypto'

import {
createDID,
generatePrivateKey,
getAuthenticatedDID,
} from '../src'

globalThis.crypto = webcrypto

describe('createDID()', () => {
test('creates a DID with no provider by default', async () => {
const did = createDID()
Expand Down

0 comments on commit 3ea17e1

Please sign in to comment.