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

485 B
Raw Blame
/// <reference types="vitest/globals" />

import { outputQrcodeAction } from '../src/lib/actions/output-qrcode-action';
import { createMockActionContext } from '@activepieces/pieces-framework';

describe('outputQrcodeAction', () => {
  test('generates QR code from text', async () => {
    const ctx = createMockActionContext({
      propsValue: { text: 'Hello World' },
    });
    const result = await outputQrcodeAction.run(ctx);
    expect(result).toBe('test-file-url');
  });
});