mirror of
https://github.com/langgenius/dify.git
synced 2026-07-30 08:49:31 +08:00
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
21 lines
601 B
TypeScript
21 lines
601 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import RunApp from './index'
|
|
|
|
describe('run app agentGuide', () => {
|
|
it('exposes non-empty agentGuide string', () => {
|
|
const guide = new RunApp().agentGuide()
|
|
expect(typeof guide).toBe('string')
|
|
expect(guide.length).toBeGreaterThan(0)
|
|
})
|
|
|
|
it('agentGuide mentions WORKFLOW section', () => {
|
|
const guide = new RunApp().agentGuide()
|
|
expect(guide).toContain('WORKFLOW')
|
|
})
|
|
|
|
it('agentGuide mentions ERROR RECOVERY section', () => {
|
|
const guide = new RunApp().agentGuide()
|
|
expect(guide).toContain('ERROR RECOVERY')
|
|
})
|
|
})
|