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.

383 B
Raw Blame
import { extractPluginId } from '../plugin'

describe('extractPluginId', () => {
  it('returns the provider prefix for nested plugin paths', () => {
    expect(extractPluginId('langgenius/openai/tools/chat')).toBe('langgenius/openai')
  })

  it('returns the original provider when it has no nested path', () => {
    expect(extractPluginId('langgenius')).toBe('langgenius')
  })
})