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.

486 B
Raw Blame
import { expect, it } from 'vite-plus/test'
import { parseHints } from './hint'

it('keeps only hints with a string op and summary', () => {
  const good = { op: 'get.app', summary: 'list apps', input: {} }
  expect(parseHints([good, { summary: 'no op' }, { op: 1, summary: 'x' }, 'text', null])).toEqual([
    good,
  ])
})

it.each([undefined, null, 'hints', { op: 'get.app', summary: 'x' }])(
  'reads %j as no hints',
  (value) => {
    expect(parseHints(value)).toEqual([])
  },
)