dify改造升级适配
This commit is contained in:
@@ -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('智能体平台')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user