diff --git a/src/__tests__/client.test.ts b/src/__tests__/client.test.ts new file mode 100644 index 0000000..5ca8261 --- /dev/null +++ b/src/__tests__/client.test.ts @@ -0,0 +1,26 @@ +import { describe, it, expect } from 'vitest'; +import { OrbitStream } from '../client'; + +describe('OrbitStream', () => { + it('should be defined', () => { + expect(OrbitStream).toBeDefined(); + }); + + it('should create client with empty API key', () => { + const client = new OrbitStream({ apiKey: '' }); + expect(client).toBeDefined(); + }); + + it('should create client with default baseUrl', () => { + const client = new OrbitStream({ apiKey: 'sk_test_123' }); + expect(client).toBeDefined(); + }); + + it('should create client with custom baseUrl', () => { + const client = new OrbitStream({ + apiKey: 'sk_test_123', + baseUrl: 'http://localhost:3001', + }); + expect(client).toBeDefined(); + }); +});