Skip to main content
Glama
aivisspeech-client.test.ts923 B
import { describe, it, expect, beforeEach, vi } from 'vitest'; import { AivisSpeechClient } from '../src/aivisspeech-client.js'; describe('AivisSpeechClient', () => { let client: AivisSpeechClient; beforeEach(() => { client = new AivisSpeechClient('http://localhost:10101'); }); describe('constructor', () => { it('should use default URL if not provided', () => { const defaultClient = new AivisSpeechClient(); expect(defaultClient).toBeInstanceOf(AivisSpeechClient); }); it('should use provided URL', () => { const customClient = new AivisSpeechClient('http://custom:8080'); expect(customClient).toBeInstanceOf(AivisSpeechClient); }); }); describe('isEngineRunning', () => { it('should return false when engine is not running', async () => { const result = await client.isEngineRunning(); expect(typeof result).toBe('boolean'); }); }); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shinshin86/mcp-simple-aivisspeech'

If you have feedback or need assistance with the MCP directory API, please join our Discord server