From 28f835a2ca1c47958080fbc71cae6261deb4bc34 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Tue, 9 Jul 2024 22:41:06 -0400 Subject: [PATCH] Import `randomUUID`. --- test/mocha/assertions/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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