mirror of
https://github.com/langgenius/dify.git
synced 2026-04-12 00:00:14 -04:00
Co-authored-by: CodingOnStar <hanxujiang@dify.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
41 lines
919 B
TypeScript
41 lines
919 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { categoryKeys, tagKeys } from '../constants'
|
|
import { PluginCategoryEnum } from '../types'
|
|
|
|
describe('plugin constants', () => {
|
|
it('exposes the expected plugin tag keys', () => {
|
|
expect(tagKeys).toEqual([
|
|
'agent',
|
|
'rag',
|
|
'search',
|
|
'image',
|
|
'videos',
|
|
'weather',
|
|
'finance',
|
|
'design',
|
|
'travel',
|
|
'social',
|
|
'news',
|
|
'medical',
|
|
'productivity',
|
|
'education',
|
|
'business',
|
|
'entertainment',
|
|
'utilities',
|
|
'other',
|
|
])
|
|
})
|
|
|
|
it('exposes the expected category keys in display order', () => {
|
|
expect(categoryKeys).toEqual([
|
|
PluginCategoryEnum.model,
|
|
PluginCategoryEnum.tool,
|
|
PluginCategoryEnum.datasource,
|
|
PluginCategoryEnum.agent,
|
|
PluginCategoryEnum.extension,
|
|
'bundle',
|
|
PluginCategoryEnum.trigger,
|
|
])
|
|
})
|
|
})
|