Skip to content

Commit

Permalink
add changset, fix failing test due to logger change
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Oct 11, 2024
1 parent 0bdb0e1 commit 3e68aae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .changeset/brave-cameras-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@web5/agent": minor
"@web5/dids": minor
"@web5/identity-agent": minor
"@web5/proxy-agent": minor
"@web5/user-agent": minor
---

Ability to Update a DID
3 changes: 2 additions & 1 deletion packages/agent/tests/agent-did-resolver-cach.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TestAgent } from './utils/test-agent.js';
import sinon from 'sinon';
import { expect } from 'chai';
import { BearerDid, DidJwk } from '@web5/dids';
import { logger } from '@web5/common';

describe('AgentDidResolverCache', () => {
let resolverCache: AgentDidResolverCache;
Expand Down Expand Up @@ -106,7 +107,7 @@ describe('AgentDidResolverCache', () => {
sinon.stub(resolverCache['cache'], 'nextTick').resolves();
const didApiStub = sinon.stub(testHarness.agent.did, 'get');
const updateSpy = sinon.stub(testHarness.agent.did, 'update').rejects(new Error('Some Error'));
const consoleErrorSpy = sinon.stub(console, 'error');
const consoleErrorSpy = sinon.stub(logger, 'error');
didApiStub.withArgs({ didUri: did.uri, tenant: testHarness.agent.agentDid.uri }).resolves(new BearerDid({
uri : did.uri,
document : { id: did.uri },
Expand Down

0 comments on commit 3e68aae

Please sign in to comment.