diff --git a/test/mocha/assertions/index.js b/test/mocha/assertions/index.js index 5a1cd9c9..187e4552 100644 --- a/test/mocha/assertions/index.js +++ b/test/mocha/assertions/index.js @@ -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'; @@ -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