Files
sdk/tests/js/client.test.ts
zeekay 1a19f15912 feat: Unified multi-language Hanzo SDK
- Consolidated Python, JavaScript, Rust, and Go SDKs
- Standard directory structure (src/py, src/js, src/rs, src/go)
- Real implementations from existing SDKs (not stubs)
- Comprehensive test framework with CI/CD matrix
- Dual distribution support (pip and npm)
- Language parity for all core commands
- Smart routing based on language strengths
2025-09-15 12:44:41 -05:00

25 lines
750 B
TypeScript

import { HanzoClient } from '../../src/js/client';
describe('HanzoClient', () => {
it('should create client instance', () => {
const client = new HanzoClient();
expect(client).toBeDefined();
});
it('should create client with API key', () => {
const client = new HanzoClient('test-api-key');
expect(client).toBeDefined();
});
it('should have chat completion method', () => {
const client = new HanzoClient();
expect(client.chatCompletion).toBeDefined();
expect(typeof client.chatCompletion).toBe('function');
});
it('should have list models method', () => {
const client = new HanzoClient();
expect(client.listModels).toBeDefined();
expect(typeof client.listModels).toBe('function');
});
});