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

506 B
Raw Blame
/// <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' });
  });

});