Skip to content

Commit

Permalink
Move zcaps initialization inside beforeEach in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Apr 15, 2024
1 parent f40a77f commit ac58a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mocha/20-credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ describe('issue APIs', () => {
let terseMultistatusStatusId;
let terseMultistatusStatusRootZcap;
let oauth2IssuerConfig;
const zcaps = {};
beforeEach(async () => {
// provision dependencies
({capabilityAgent} = await helpers.provisionDependencies(depOptions));
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ac58a72

Please sign in to comment.