Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/__tests__/client.test.ts
Original file line number Diff line number Diff line change
@@ -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();
});
});
Loading