diff --git a/src/integrationTest/kotlin/OrganizationsIntegrationTest.kt b/src/integrationTest/kotlin/OrganizationsIntegrationTest.kt index fb47f47..7b2ef65 100644 --- a/src/integrationTest/kotlin/OrganizationsIntegrationTest.kt +++ b/src/integrationTest/kotlin/OrganizationsIntegrationTest.kt @@ -2,6 +2,7 @@ package com.jeliuc.turso.sdk import com.jeliuc.turso.sdk.model.ListAuditLogsResponse import com.jeliuc.turso.sdk.model.ListInvitesResponse +import com.jeliuc.turso.sdk.model.ListMembersResponse import com.jeliuc.turso.sdk.resource.organizations import io.ktor.client.engine.cio.CIO import kotlinx.coroutines.runBlocking @@ -39,5 +40,15 @@ class OrganizationsIntegrationTest { assertIs(logs) } + @Test + fun `can list members`() { + val members = + runBlocking { + getClient().organizations.members.list(organization) + } + + assertIs(members) + } + private fun getClient(): TursoClient = TursoClient.using(CIO.create(), token) }