Skip to content

Commit e94ebed

Browse files
committed
fix unit tests
1 parent 5ea74f7 commit e94ebed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

verifiable/did_doc_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func TestAuthenticationMarshalUnmarshal(t *testing.T) {
104104
require.JSONEq(t, in, string(marshaled))
105105
}
106106

107-
func TestDidDoc_ResolveAssertionVerificationMethods(t *testing.T) {
107+
func TestDidDoc_ResolveAuthVerificationMethods(t *testing.T) {
108108
vm1 := CommonVerificationMethod{ID: "did:example:123#key-1", Type: "EcdsaSecp256k1VerificationKey2019", Controller: "did:example:123"}
109109
vm2 := CommonVerificationMethod{ID: "did:example:123#key-2", Type: "EcdsaSecp256k1VerificationKey2019", Controller: "did:example:123"}
110110

@@ -166,7 +166,7 @@ func TestDidDoc_ResolveAssertionVerificationMethods(t *testing.T) {
166166

167167
for _, tc := range tests {
168168
t.Run(tc.name, func(t *testing.T) {
169-
got, err := tc.doc.ResolveAssertionVerificationMethods()
169+
got, err := tc.doc.ResolveAuthVerificationMethods()
170170
require.NoError(t, err)
171171
require.Len(t, got, len(tc.wantIDs))
172172
for i, vm := range got {
@@ -207,7 +207,7 @@ func TestDidDoc_ResolveKeyAgreementVerificationMethods(t *testing.T) {
207207
}
208208
}
209209

210-
func TestDidDoc_ResolveAssertionVerificationMethods_Errors(t *testing.T) {
210+
func TestDidDoc_ResolveAuthVerificationMethods_Errors(t *testing.T) {
211211
vm1 := CommonVerificationMethod{ID: "did:example:123#key-1", Type: "EcdsaSecp256k1VerificationKey2019", Controller: "did:example:123"}
212212

213213
tests := []struct {
@@ -240,7 +240,7 @@ func TestDidDoc_ResolveAssertionVerificationMethods_Errors(t *testing.T) {
240240

241241
for _, tc := range tests {
242242
t.Run(tc.name, func(t *testing.T) {
243-
_, err := tc.doc.ResolveAssertionVerificationMethods()
243+
_, err := tc.doc.ResolveAuthVerificationMethods()
244244
require.Error(t, err)
245245
require.Contains(t, err.Error(), tc.errContain)
246246
})

0 commit comments

Comments
 (0)