From 7accb985ef7b9dc7b5d227f6020bbcb0cc6260a1 Mon Sep 17 00:00:00 2001 From: gabe Date: Thu, 20 Jun 2024 15:14:23 -0700 Subject: [PATCH] fix format --- credential/builder_test.go | 4 ++-- did/peer/peer_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/credential/builder_test.go b/credential/builder_test.go index de3665a6..a6ca7549 100644 --- a/credential/builder_test.go +++ b/credential/builder_test.go @@ -73,7 +73,7 @@ func TestCredential(t *testing.T) { // Exercise all builder methods func TestCredentialBuilder(t *testing.T) { - + builder := NewVerifiableCredentialBuilder(EmptyIDValue) assert.Empty(t, builder.ID) @@ -102,7 +102,7 @@ func TestCredentialBuilder(t *testing.T) { //default id is not empty assert.NotEmpty(t, builder.ID) - + // set id id := "p" err = builder.SetID(id) diff --git a/did/peer/peer_test.go b/did/peer/peer_test.go index 7a62050b..6699af2e 100644 --- a/did/peer/peer_test.go +++ b/did/peer/peer_test.go @@ -195,7 +195,7 @@ func makeSamplePeerDIDDocument() *did.Document { PublicKeyMultibase: "z6LSbysY2xFMRpGMhb7tFTLMpeuPRaqaWM1yECx2AtzE3KCc", }, }, - Services: []did.Service{did.Service{ + Services: []did.Service{{ ID: "did:peer:2.Ez6LSbysY2xFMRpGMhb7tFTLMpeuPRaqaWM1yECx2AtzE3KCc.Vz6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V.Vz6MkgoLTnTypo3tDRwCkZXSccTPHRLhF4ZnjhueYAFpEX6vg.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9lbmRwb2ludCIsInIiOlsiZGlkOmV4YW1wbGU6c29tZW1lZGlhdG9yI3NvbWVrZXkiXSwiYSI6WyJkaWRjb21tL3YyIiwiZGlkY29tbS9haXAyO2Vudj1yZmM1ODciXX0#didcommmessaging-0", Type: "DIDCommMessaging", ServiceEndpoint: "https://example.com/endpoint",