UNPKG

aptai-jst

Version:

AptAi: AI-powered Aptos Blockchain SDK with Groq AI Integration

20 lines (16 loc) 472 B
const { AptosClient } = require('@aptos-labs/ts-sdk'); const { AptAi } = require('../aptai'); jest.mock('@aptos-labs/ts-sdk', () => ({ AptosClient: jest.fn().mockImplementation(() => ({})), AptosAccount: jest.fn(), HexString: jest.fn() })); describe('AptAi SDK', () => { test('should create an instance', () => { const ai = new AptAi({ groqApiKey: 'test_key' }); expect(ai).toBeDefined(); expect(AptosClient).toHaveBeenCalled(); }); });