Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

959 B
Raw Blame
import en from '~/locales/en/translation.json';
import { EXPRESSIONS } from '../engine/face';
import { ACTIONS } from '../engine/catalog';
import { SAY } from '../speech';

describe('Lia speech', () => {
  it('has an English label for everything Lia does and feels', () => {
    const labels = [
      ...ACTIONS.map((a) => a.label),
      ...EXPRESSIONS.map((e) => e.label),
      'com_ui_lia_doing',
      'com_ui_lia_act_idle',
    ];
    for (const label of labels) {
      expect({ label, present: label in en }).toEqual({ label, present: true });
    }
  });

  it('has an English line for every word Lia says', () => {
    for (const action of ACTIONS) {
      for (const [, spec] of action.steps) {
        if (spec.b && 'say' in spec.b) {
          const key = SAY[spec.b.say];
          expect({ say: spec.b.say, present: key in en }).toEqual({
            say: spec.b.say,
            present: true,
          });
        }
      }
    }
  });
});