Skip to content

Commit 3535bba

Browse files
chore(internal): codegen related update (#126)
1 parent fa43f83 commit 3535bba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/index.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ describe('instantiate client', () => {
9696
expect(response).toEqual({ url: 'http://localhost:5000/foo', custom: true });
9797
});
9898

99+
test('explicit global fetch', async () => {
100+
// make sure the global fetch type is assignable to our Fetch type
101+
const client = new Browserbase({
102+
baseURL: 'http://localhost:5000/',
103+
apiKey: 'My API Key',
104+
fetch: defaultFetch,
105+
});
106+
});
107+
99108
test('custom signal', async () => {
100109
const client = new Browserbase({
101110
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',

0 commit comments

Comments
 (0)