this repo has no description
1/**
2 * Tests for Letta client module
3 */
4
5import { test, expect, describe } from 'bun:test';
6import { getLettaClient } from './letta';
7
8describe('Letta client', () => {
9 test('getLettaClient returns a Letta instance', () => {
10 const client = getLettaClient();
11 expect(client).toBeDefined();
12 expect(client.agents).toBeDefined();
13 expect(client.models).toBeDefined();
14 expect(client.tools).toBeDefined();
15 });
16
17 test('getLettaClient returns the same instance (singleton)', () => {
18 const client1 = getLettaClient();
19 const client2 = getLettaClient();
20 expect(client1).toBe(client2);
21 });
22});