Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: mineme0110 <[email protected]>
  • Loading branch information
mineme0110 committed Aug 15, 2024
1 parent 10c9666 commit 357fb3c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object PresentationServiceSpec extends ZIOSpecDefault with PresentationServiceSp

check(
Gen.uuid.map(e => DidCommID(e.toString)),
Gen.option(Gen.string),
Gen.string,
Gen.listOfBounded(1, 5)(proofTypeGen),
Gen.option(optionsGen)
) { (thid, connectionId, proofTypes, options) =>
Expand All @@ -72,7 +72,7 @@ object PresentationServiceSpec extends ZIOSpecDefault with PresentationServiceSp
pairwiseVerifierDid,
Some(pairwiseProverDid),
thid,
connectionId,
Some(connectionId),
proofTypes,
options,
None,
Expand All @@ -81,7 +81,7 @@ object PresentationServiceSpec extends ZIOSpecDefault with PresentationServiceSp
} yield {
assertTrue(record.thid == thid) &&
assertTrue(record.updatedAt.isEmpty) &&
assertTrue(record.connectionId == connectionId) &&
assertTrue(record.connectionId.contains(connectionId)) &&
assertTrue(record.role == PresentationRecord.Role.Verifier) &&
assertTrue(record.protocolState == PresentationRecord.ProtocolState.RequestPending) &&
assertTrue(record.requestPresentationData.isDefined) &&
Expand Down Expand Up @@ -118,7 +118,7 @@ object PresentationServiceSpec extends ZIOSpecDefault with PresentationServiceSp
test("createPresentationRecord creates a valid Anoncred PresentationRecord") {
check(
Gen.uuid.map(e => DidCommID(e.toString)),
Gen.option(Gen.string),
Gen.string,
Gen.string,
Gen.string,
Gen.string
Expand All @@ -140,15 +140,15 @@ object PresentationServiceSpec extends ZIOSpecDefault with PresentationServiceSp
pairwiseVerifierDid,
Some(pairwiseProverDid),
thid,
connectionId,
Some(connectionId),
anoncredPresentationRequestV1,
None,
None
)
} yield {
assertTrue(record.thid == thid) &&
assertTrue(record.updatedAt.isEmpty) &&
assertTrue(record.connectionId == connectionId) &&
assertTrue(record.connectionId.contains(connectionId)) &&
assertTrue(record.role == PresentationRecord.Role.Verifier) &&
assertTrue(record.protocolState == PresentationRecord.ProtocolState.RequestPending) &&
assertTrue(record.requestPresentationData.isDefined) &&
Expand Down

0 comments on commit 357fb3c

Please sign in to comment.