diff --git a/mercury/mercury-library/protocol-present-proof/src/test/scala/io/iohk/atala/mercury/protocol/presentproof/PresentationSpec.scala b/mercury/mercury-library/protocol-present-proof/src/test/scala/io/iohk/atala/mercury/protocol/presentproof/PresentationSpec.scala index db3a6883df..b0e87da375 100644 --- a/mercury/mercury-library/protocol-present-proof/src/test/scala/io/iohk/atala/mercury/protocol/presentproof/PresentationSpec.scala +++ b/mercury/mercury-library/protocol-present-proof/src/test/scala/io/iohk/atala/mercury/protocol/presentproof/PresentationSpec.scala @@ -22,17 +22,8 @@ class PresentationSpec extends ZSuite { val expectedProposalJson = parse(s"""{ | "id": "061bf917-2cbe-460b-8d12-b1a9609505c2", | "type": "https://didcomm.atalaprism.io/present-proof/3.0/presentation", - | "body": - | { - | "goal_code": "Presentation", - | "last_presentation" : true, - | "formats": - | [] - | }, - | "attachments": - | [ - | $attachmentDescriptorJson - | ], + | "body": {"goal_code": "Presentation"}, + | "attachments": [$attachmentDescriptorJson], | "to" : "did:prism:test123", | "from" : "did:prism:test123" |}""".stripMargin).getOrElse(Json.Null) @@ -46,9 +37,6 @@ class PresentationSpec extends ZSuite { ) val did = DidId("did:prism:test123") - println("************************") - println(did.asJson.noSpaces) - println("************************") val result = presentation.asJson.deepDropNullValues assertEquals(result, expectedProposalJson) diff --git a/mercury/mercury-library/protocol-present-proof/src/test/scala/io/iohk/atala/mercury/protocol/presentproof/RequestPresentationSpec.scala b/mercury/mercury-library/protocol-present-proof/src/test/scala/io/iohk/atala/mercury/protocol/presentproof/RequestPresentationSpec.scala index f3364581ed..5717826ed6 100644 --- a/mercury/mercury-library/protocol-present-proof/src/test/scala/io/iohk/atala/mercury/protocol/presentproof/RequestPresentationSpec.scala +++ b/mercury/mercury-library/protocol-present-proof/src/test/scala/io/iohk/atala/mercury/protocol/presentproof/RequestPresentationSpec.scala @@ -27,16 +27,11 @@ class RequestCredentialSpec extends ZSuite { | { | "goal_code": "Propose Presentation", | "will_confirm" : false, - | "present_multiple" : false, - | "formats": - | [] + | "proof_types":[] | }, - | "attachments": - | [ - | $attachmentDescriptorJson - | ], - | "to" : "did:prism:test123", - | "from" : "did:prism:test123" + | "attachments": [$attachmentDescriptorJson], + | "from" : "did:prism:test123", + | "to" : "did:prism:test123" |}""".stripMargin).getOrElse(Json.Null) val requestPresentation = RequestPresentation(