Skip to content

Commit

Permalink
Spell out function name
Browse files Browse the repository at this point in the history
  • Loading branch information
nodh committed Sep 27, 2024
1 parent f7927c1 commit 547288a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class AgentSdJwtTest : FreeSpec({
val presentationParameters = holder.createPresentation(
challenge = challenge,
audienceId = verifier.keyMaterial.identifier,
presentationDefinition = buildPresDef(CLAIM_GIVEN_NAME, CLAIM_DATE_OF_BIRTH)
presentationDefinition = buildPresentationDefinition(CLAIM_GIVEN_NAME, CLAIM_DATE_OF_BIRTH)
).getOrThrow()

val vp = presentationParameters.presentationResults.firstOrNull()
Expand Down Expand Up @@ -95,7 +95,7 @@ class AgentSdJwtTest : FreeSpec({
val presentationParameters = holder.createPresentation(
challenge = challenge,
audienceId = verifier.keyMaterial.identifier,
presentationDefinition = buildPresDef(CLAIM_GIVEN_NAME),
presentationDefinition = buildPresentationDefinition(CLAIM_GIVEN_NAME)
).getOrThrow()

val vp = presentationParameters.presentationResults.firstOrNull()
Expand All @@ -113,7 +113,7 @@ class AgentSdJwtTest : FreeSpec({
val presentationParameters = holder.createPresentation(
challenge = malformedChallenge,
audienceId = verifier.keyMaterial.identifier,
presentationDefinition = buildPresDef(CLAIM_GIVEN_NAME)
presentationDefinition = buildPresentationDefinition(CLAIM_GIVEN_NAME)
).getOrThrow()

val vp = presentationParameters.presentationResults.firstOrNull()
Expand All @@ -127,7 +127,7 @@ class AgentSdJwtTest : FreeSpec({
val presentationParameters = holder.createPresentation(
challenge = challenge,
audienceId = verifier.keyMaterial.identifier,
presentationDefinition = buildPresDef(CLAIM_GIVEN_NAME)
presentationDefinition = buildPresentationDefinition(CLAIM_GIVEN_NAME)
).getOrThrow()

val vp = presentationParameters.presentationResults.firstOrNull()
Expand All @@ -145,7 +145,7 @@ class AgentSdJwtTest : FreeSpec({

})

private fun buildPresDef(vararg attributeName: String) = PresentationDefinition(
private fun buildPresentationDefinition(vararg attributeName: String) = PresentationDefinition(
id = uuid4().toString(),
inputDescriptors = listOf(
DifInputDescriptor(
Expand Down

0 comments on commit 547288a

Please sign in to comment.