From 3e68aaed244e8ea1f1772f7bc776f1875fda3684 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Fri, 11 Oct 2024 12:43:44 -0400 Subject: [PATCH] add changset, fix failing test due to logger change --- .changeset/brave-cameras-reply.md | 9 +++++++++ packages/agent/tests/agent-did-resolver-cach.spec.ts | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/brave-cameras-reply.md diff --git a/.changeset/brave-cameras-reply.md b/.changeset/brave-cameras-reply.md new file mode 100644 index 000000000..49b67b0a6 --- /dev/null +++ b/.changeset/brave-cameras-reply.md @@ -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 diff --git a/packages/agent/tests/agent-did-resolver-cach.spec.ts b/packages/agent/tests/agent-did-resolver-cach.spec.ts index b9b751c94..ecf75de76 100644 --- a/packages/agent/tests/agent-did-resolver-cach.spec.ts +++ b/packages/agent/tests/agent-did-resolver-cach.spec.ts @@ -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; @@ -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 },