Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

741 B
Raw Blame
import { render, screen } from '@testing-library/react'
import ChunkingModeLabel from '../chunking-mode-label'

describe('ChunkingModeLabel', () => {
  it.each([
    {
      isGeneralMode: true,
      isQAMode: false,
      label: 'dataset.chunkingMode.general',
    },
    {
      isGeneralMode: true,
      isQAMode: true,
      label: 'dataset.chunkingMode.general · QA',
    },
    {
      isGeneralMode: false,
      isQAMode: false,
      label: 'dataset.chunkingMode.parentChild',
    },
  ])('displays $label for a supported chunking mode', ({ isGeneralMode, isQAMode, label }) => {
    render(<ChunkingModeLabel isGeneralMode={isGeneralMode} isQAMode={isQAMode} />)

    expect(screen.getByText(label)).toBeInTheDocument()
  })
})