Skip to content

Commit

Permalink
chore(internal): add test (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jan 20, 2025
1 parent 17d306a commit c8b598a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ describe('instantiate client', () => {
expect(response).toEqual({ url: 'http://localhost:5000/foo', custom: true });
});

test('explicit global fetch', async () => {
// make sure the global fetch type is assignable to our Fetch type
const client = new ModernTreasury({
baseURL: 'http://localhost:5000/',
apiKey: 'My API Key',
organizationId: 'my-organization-ID',
fetch: defaultFetch,
});
});

test('custom signal', async () => {
const client = new ModernTreasury({
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
Expand Down

0 comments on commit c8b598a

Please sign in to comment.