Skip to content

Commit dff8c7f

Browse files
committed
add missing test
1 parent 56821bf commit dff8c7f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎openapi-processor-core/src/test/kotlin/io/openapiprocessor/core/builder/api/EndpointBuilderSpec.kt‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,11 @@ class EndpointBuilderSpec: StringSpec({
7070
ep.requestBodies.first().name shouldBe "body"
7171
}
7272

73+
"adds endpoint operation id" {
74+
val ep = endpoint("/foo") {
75+
operationId = "id"
76+
}
77+
78+
ep.operationId shouldBe "id"
79+
}
7380
})

0 commit comments

Comments
 (0)