Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

547 B
Raw Blame
import { readFileSync } from 'fs';
import path from 'path';

import { formErrors } from '@activepieces/shared';
import { describe, expect, it } from 'vitest';

const translations: Record<string, string> = JSON.parse(
  readFileSync(
    path.resolve(__dirname, '../../public/locales/en/translation.json'),
    'utf-8',
  ),
);

describe('formErrors translations', () => {
  it.each(Object.values(formErrors))('has English text for %s', (key) => {
    expect(translations[key]).toBeDefined();
    expect(translations[key]).not.toBe(key);
  });
});