From ac58a727488fa24113e05f5d1125c1176900d507 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Mon, 15 Apr 2024 13:50:29 -0400 Subject: [PATCH] Move `zcaps` initialization inside `beforeEach` in tests. --- test/mocha/20-credentials.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mocha/20-credentials.js b/test/mocha/20-credentials.js index 981c36f5..776ac0a3 100644 --- a/test/mocha/20-credentials.js +++ b/test/mocha/20-credentials.js @@ -131,7 +131,6 @@ describe('issue APIs', () => { let terseMultistatusStatusId; let terseMultistatusStatusRootZcap; let oauth2IssuerConfig; - const zcaps = {}; beforeEach(async () => { // provision dependencies ({capabilityAgent} = await helpers.provisionDependencies(depOptions)); @@ -171,6 +170,7 @@ describe('issue APIs', () => { // delegate edv, hmac, and key agreement key zcaps to service agent const {id: edvId} = edvConfig; + const zcaps = {}; zcaps.edv = await helpers.delegate({ controller: serviceAgent.id, delegator: capabilityAgent,