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.

526 B
Raw Blame
import { expect, it } from 'vite-plus/test'
import { unsupportedFlags } from './flags'

it('refuses the flags a kind does not accept and treats an unknown kind as an object', () => {
  const all = { input: '{}', stream: true, only: ['a'], output: 'f' }
  expect(unsupportedFlags('sse', all)).toEqual(['output'])
  expect(unsupportedFlags('file', all)).toEqual(['stream', 'only'])
  expect(unsupportedFlags('hologram', { stream: true })).toEqual(['stream'])
  expect(unsupportedFlags('object', { input: '{}' })).toEqual([])
})