Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(internal): add test (#604)
Browse files Browse the repository at this point in the history
stainless-app[bot] authored and stainless-bot committed Jan 20, 2025
1 parent 753bcf0 commit 12512e5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
@@ -96,6 +96,15 @@ 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 Lithic({
baseURL: 'http://localhost:5000/',
apiKey: 'My Lithic API Key',
fetch: defaultFetch,
});
});

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

0 comments on commit 12512e5

Please sign in to comment.