Skip to content

Commit

Permalink
Import randomUUID.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Jul 10, 2024
1 parent e944a75 commit 28f835a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/mocha/assertions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
import {CapabilityAgent} from '@digitalbazaar/webkms-client';
import {createZcapClient} from '../helpers.js';
import {randomUUID} from 'node:crypto';

const VC_CONTEXT_V1 = 'https://www.w3.org/2018/credentials/v1';
const VC_CONTEXT_V2 = 'https://www.w3.org/ns/credentials/v2';
Expand All @@ -28,7 +29,7 @@ export async function assertStoredCredential({
let error;
let result;
try {
const secret = crypto.randomUUID();
const secret = randomUUID();
const handle = 'test';
const capabilityAgent = await CapabilityAgent.fromSecret({
secret, handle
Expand Down

0 comments on commit 28f835a

Please sign in to comment.