Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

419 B
Raw Blame
import { Operator } from '../../constant';
import { shouldUseCodeExecDebugLayout } from './utils';

describe('shouldUseCodeExecDebugLayout', () => {
  it('returns true only for CodeExec nodes', () => {
    expect(shouldUseCodeExecDebugLayout(Operator.Code)).toBe(true);
    expect(shouldUseCodeExecDebugLayout(Operator.Retrieval)).toBe(false);
    expect(shouldUseCodeExecDebugLayout(undefined)).toBe(false);
  });
});