Skip to content

Commit 17c4e8f

Browse files
fix: pluralize list response variables (#519)
1 parent 0bd7dd5 commit 17c4e8f

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsyncTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal class DocumentServiceAsyncTest {
2121
.build()
2222
val documentServiceAsync = client.hris().documents()
2323

24-
val documentFuture =
24+
val documentsFuture =
2525
documentServiceAsync.list(
2626
HrisDocumentListParams.builder()
2727
.addIndividualId("string")
@@ -31,8 +31,8 @@ internal class DocumentServiceAsyncTest {
3131
.build()
3232
)
3333

34-
val document = documentFuture.get()
35-
document.validate()
34+
val documents = documentsFuture.get()
35+
documents.validate()
3636
}
3737

3838
@Test

finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ internal class AutomatedServiceAsyncTest {
6464
.build()
6565
val automatedServiceAsync = client.jobs().automated()
6666

67-
val automatedFuture =
67+
val automatedsFuture =
6868
automatedServiceAsync.list(
6969
JobAutomatedListParams.builder().limit(0L).offset(0L).build()
7070
)
7171

72-
val automated = automatedFuture.get()
73-
automated.validate()
72+
val automateds = automatedsFuture.get()
73+
automateds.validate()
7474
}
7575
}

finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/DocumentServiceTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal class DocumentServiceTest {
2121
.build()
2222
val documentService = client.hris().documents()
2323

24-
val document =
24+
val documents =
2525
documentService.list(
2626
HrisDocumentListParams.builder()
2727
.addIndividualId("string")
@@ -31,7 +31,7 @@ internal class DocumentServiceTest {
3131
.build()
3232
)
3333

34-
document.validate()
34+
documents.validate()
3535
}
3636

3737
@Test

finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ internal class AutomatedServiceTest {
6060
.build()
6161
val automatedService = client.jobs().automated()
6262

63-
val automated =
63+
val automateds =
6464
automatedService.list(JobAutomatedListParams.builder().limit(0L).offset(0L).build())
6565

66-
automated.validate()
66+
automateds.validate()
6767
}
6868
}

0 commit comments

Comments
 (0)