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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
/// <reference types="vitest/globals" />
import { advancedMapping } from '../src/lib/actions/advanced-mapping';
import { createMockActionContext } from '@activepieces/pieces-framework';
describe('advancedMapping', () => {
test('returns simple object mapping as-is', async () => {
const ctx = createMockActionContext({
propsValue: {
mapping: { key: 'value' },
},
});
const result = await advancedMapping.run(ctx);
expect(result).toEqual({ key: 'value' });
});
});