/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { expect, test } from "vitest"; import { Apexascend } from "../index.js"; import { createTestHTTPClient } from "./testclient.js"; test("Pre Ipo Funding Rounds Pre Ipo Company Funding Rounds List Pre Ipo Company Funding Rounds", async () => { const testHttpClient = createTestHTTPClient( "PreIpoCompanyFundingRounds_ListPreIpoCompanyFundingRounds", ); const apexascend = new Apexascend({ serverURL: process.env["SERVICE_ACCOUNT_CREDS_URL"] ?? "", security: { apiKey: process.env["API_KEY"] ?? "value", serviceAccountCreds: { privateKey: process.env["SERVICE_ACCOUNT_CREDS_PRIVATE_KEY"] ?? "value", name: process.env["SERVICE_ACCOUNT_CREDS_NAME"] ?? "value", organization: process.env["SERVICE_ACCOUNT_CREDS_ORGANIZATION"] ?? "value", type: process.env["SERVICE_ACCOUNT_CREDS_TYPE"] ?? "value", }, }, httpClient: testHttpClient, }); const result = await apexascend.preIPOFundingRounds .listPreIpoCompanyFundingRounds( "a6c63e95-fe8a-4703-a74a-f2a90c0a9c6d", 25, "", ); expect(result.httpMeta.response.status).toBe(200); }); test("Pre Ipo Funding Rounds Pre Ipo Company Funding Rounds Get Pre Ipo Company Funding Round", async () => { const testHttpClient = createTestHTTPClient( "PreIpoCompanyFundingRounds_GetPreIpoCompanyFundingRound", ); const apexascend = new Apexascend({ serverURL: process.env["SERVICE_ACCOUNT_CREDS_URL"] ?? "", security: { apiKey: process.env["API_KEY"] ?? "value", serviceAccountCreds: { privateKey: process.env["SERVICE_ACCOUNT_CREDS_PRIVATE_KEY"] ?? "value", name: process.env["SERVICE_ACCOUNT_CREDS_NAME"] ?? "value", organization: process.env["SERVICE_ACCOUNT_CREDS_ORGANIZATION"] ?? "value", type: process.env["SERVICE_ACCOUNT_CREDS_TYPE"] ?? "value", }, }, httpClient: testHttpClient, }); const result = await apexascend.preIPOFundingRounds .getPreIpoCompanyFundingRound( "a6c63e95-fe8a-4703-a74a-f2a90c0a9c6d", "019c6a2b-6801-7759-9e1d-3d5aaa64bc2a", ); expect(result.httpMeta.response.status).toBe(200); });