dify改造升级适配

This commit is contained in:
2025-12-20 19:59:33 +08:00
parent 70533027f8
commit bac3a97720
8 changed files with 28 additions and 99 deletions

View File

@@ -63,18 +63,18 @@ describe('use default branding', () => {
* Test title format with page title and default branding
* Format: "[page] - Dify"
*/
it('document title should be test-Dify if set title', () => {
it('document title should be test-智能体平台 if set title', () => {
renderHook(() => useDocumentTitle('test'))
expect(document.title).toBe('test - Dify')
expect(document.title).toBe('test - 智能体平台')
})
/**
* Test title with only default branding (no page title)
* Format: "Dify"
*/
it('document title should be Dify if not set title', () => {
it('document title should be 智能体平台 if not set title', () => {
renderHook(() => useDocumentTitle(''))
expect(document.title).toBe('Dify')
expect(document.title).toBe('智能体平台')
})
})