Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioPinheiro committed Dec 2, 2022
1 parent 2f41c17 commit 7551379
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7551379

Please sign in to comment.