Skip to content

Commit

Permalink
fix: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hamada147 committed Dec 9, 2022
1 parent 9ecc802 commit 6ccce04
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package io.iohk.atala.prism.mercury.didpeer
import io.iohk.atala.prism.mercury.didpeer.core.didDocFromJson
import io.iohk.atala.prism.mercury.didpeer.core.toJsonElement
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.jsonObject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ import io.iohk.atala.prism.mercury.didpeer.VerificationMethodPeerDID
import io.iohk.atala.prism.mercury.didpeer.VerificationMethodTypeAgreement
import io.iohk.atala.prism.mercury.didpeer.VerificationMethodTypeAuthentication
import io.iohk.atala.prism.mercury.didpeer.VerificationMethodTypePeerDID
import kotlinx.serialization.json.*
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.JsonPrimitive
import kotlinx.serialization.json.contentOrNull
import kotlinx.serialization.json.jsonArray
import kotlinx.serialization.json.jsonObject
import kotlinx.serialization.json.jsonPrimitive

private val verTypeToField = mapOf(
VerificationMethodTypeAgreement.X25519_KEY_AGREEMENT_KEY_2019 to PublicKeyField.BASE58,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.iohk.atala.prism.mercury.didpeer.core

import io.iohk.atala.prism.apollo.base64.base64UrlDecodedBytes
import io.iohk.atala.prism.apollo.base64.base64UrlEncoded
import io.iohk.atala.prism.apollo.base64.base64UrlPadDecodedBytes
import io.iohk.atala.prism.mercury.didpeer.VerificationMaterialPeerDID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,13 @@ class TestDIDDocFromJson {
}
assertEquals(expectedServiceAccept, service.accept)

assertEquals(listOf(
(expectedAuth1["id"] as JsonPrimitive).content,
(expectedAuth2["id"] as JsonPrimitive).content
), didDoc.authenticationKids)
assertEquals(
listOf(
(expectedAuth1["id"] as JsonPrimitive).content,
(expectedAuth2["id"] as JsonPrimitive).content
),
didDoc.authenticationKids
)

assertEquals(listOf((expectedAgreem["id"] as JsonPrimitive).content), didDoc.agreementKids)
}
Expand Down

0 comments on commit 6ccce04

Please sign in to comment.