From 7f845498cda8be80f2d2f760020354811fb29df1 Mon Sep 17 00:00:00 2001 From: oomokaro1 Date: Thu, 18 Jun 2026 11:26:03 +0100 Subject: [PATCH] fix: add test file and fix import path --- src/__tests__/client.test.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/__tests__/client.test.ts 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(); + }); +});