Skip to content

Commit

Permalink
add tests to check verification method controller in did peer resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Jul 14, 2023
1 parent 87fd44a commit 74d7d03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions did/peer/peer0_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func TestPeerResolveMethod0(t *testing.T) {
testDoc := getSampleDIDDocumentMethod0()
assert.Equal(t, testDoc.Context, resolved.Document.Context)
assert.Equal(t, testDoc.ID, resolved.ID)
assert.Equal(t, len(resolved.VerificationMethod), 1)
assert.Equal(t, testDoc.ID, resolved.VerificationMethod[0].Controller)
}

func makeSamplePeerDIDDocument0() *did.Document {
Expand Down

0 comments on commit 74d7d03

Please sign in to comment.