🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { describe, expect, it } from 'vitest';
import { chainTranslate } from '../translate';
describe('chainTranslate', () => {
it('should create a payload with system and user messages for translation', () => {
// Arrange
const content = 'This is a test sentence.';
const targetLang = 'zh-CN';
// Act
const result = chainTranslate(content, targetLang);
// Assert
expect(result).toMatchSnapshot();
});
});