Skip to content

Commit

Permalink
Code hygiene and cleanup
Browse files Browse the repository at this point in the history
* removed explicit given type which was redundant
  • Loading branch information
nashjain committed Oct 17, 2024
1 parent b59f5eb commit 1dae631
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ data class HttpResponsePattern(
if(responseExampleMatchResult is Result.Failure)
throw ContractException("""Error in response in example "${row.name}": ${responseExampleMatchResult.reportString()}""")

val expectedResponseValue: HttpResponsePattern =
HttpResponsePattern(
val expectedResponseValue = HttpResponsePattern(
responseExample.headersPattern(),
responseExample.responseExample.status,
responseExample.bodyPattern()
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/kotlin/integration_tests/WorkflowTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class WorkflowTest {
)
.toFeature()

var idInRequest: String = ""
var idInRequest = ""

feature.executeTests(object : TestExecutor {
override fun execute(request: HttpRequest): HttpResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6472,7 +6472,7 @@ paths:

val feature = OpenApiSpecification.fromYAML(specification, "/file.yaml").toFeature()

val validAuthStub: ScenarioStub = ScenarioStub(
val validAuthStub = ScenarioStub(
HttpRequest(
"POST",
"/test",
Expand All @@ -6482,7 +6482,7 @@ paths:
HttpResponse.ok("success")
)

val invalidAuthStub: ScenarioStub = ScenarioStub(
val invalidAuthStub = ScenarioStub(
HttpRequest(
"POST",
"/test",
Expand Down

0 comments on commit 1dae631

Please sign in to comment.