dify/web/app/components/plugins/readme-panel/__tests__/constants.spec.ts
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

20 lines
644 B
TypeScript

import { describe, expect, it } from 'vitest'
import { BUILTIN_TOOLS_ARRAY } from '../constants'
describe('BUILTIN_TOOLS_ARRAY', () => {
it('should contain expected builtin tools', () => {
expect(BUILTIN_TOOLS_ARRAY).toContain('code')
expect(BUILTIN_TOOLS_ARRAY).toContain('audio')
expect(BUILTIN_TOOLS_ARRAY).toContain('time')
expect(BUILTIN_TOOLS_ARRAY).toContain('webscraper')
})
it('should have exactly 4 builtin tools', () => {
expect(BUILTIN_TOOLS_ARRAY).toHaveLength(4)
})
it('should be an array of strings', () => {
for (const tool of BUILTIN_TOOLS_ARRAY) expect(typeof tool).toBe('string')
})
})