mirror of
https://github.com/hanzoai/sdk.git
synced 2026-11-02 13:09:00 +00:00
- 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
25 lines
750 B
TypeScript
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');
|
|
});
|
|
}); |