Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
a2xchip committed Jan 22, 2025
1 parent d919283 commit 0835c0b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/integrationTest/kotlin/OrganizationsIntegrationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ class OrganizationsIntegrationTest {
assertIs<SubscriptionResponse>(subscription)
}

@Test
fun `can get organization usage`() {
val usage = runBlocking {
getClient().organizations.usage()
}

assertIs<OrganizationDatabaseUsageResponse>(usage)
}

@Test
fun `can list invoices`() {
val invoices =
Expand All @@ -68,6 +77,15 @@ class OrganizationsIntegrationTest {
assertIs<InvoicesResponse>(invoices)
}

@Test
fun `can list plans`() {
val plans = runBlocking {
getClient().organizations.plans(organization)
}

assertIs<List<OrganizationPlan>>(plans)
}

@Test
fun `can list invitations`() {
val invitations =
Expand Down

0 comments on commit 0835c0b

Please sign in to comment.