You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/bindingsfromunittests/ActionForGeneratedJar.kt
Copy file name to clipboardExpand all lines: action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/GenerationTest.kt
+2-33Lines changed: 2 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -501,48 +501,17 @@ class GenerationTest : FunSpec({
501
501
502
502
test("action binding generated for the versioned JAR") {
503
503
// given
504
-
val actionManifest =
505
-
Metadata(
506
-
name =
507
-
"""
508
-
Do something cool
509
-
and describe it in multiple lines
510
-
""".trimIndent(),
511
-
description = "This is a test description that should be put in the KDoc comment for a class",
512
-
inputs =
513
-
mapOf(
514
-
"foo-bar" to
515
-
Input(
516
-
description = "Short description",
517
-
required = true,
518
-
default = null,
519
-
),
520
-
"baz-goo" to
521
-
Input(
522
-
description =
523
-
"""
524
-
Just another input
525
-
with multiline description
526
-
""".trimIndent(),
527
-
deprecationMessage = "this is deprecated",
528
-
required = true,
529
-
default = null,
530
-
),
531
-
),
532
-
)
533
504
val coords = ActionCoords("john-smith", "action-for-generated-jar", "v3")
534
505
535
506
// when
536
507
val binding =
537
508
coords.generateBinding(
538
509
metadataRevision = FromLockfile,
539
-
metadata = actionManifest,
510
+
metadata = actionManifestWithAllTypesOfInputs,
540
511
clientType = ClientType.VERSIONED_JAR,
541
512
inputTypings =
542
513
Pair(
543
-
mapOf(
544
-
"baz-goo" to EnumTyping(null, listOf("helloworld"), listOf("HelloWorld")),
0 commit comments