mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 11:44:28 +08:00
fix(测试): 修正系统提供者名称匹配测试的预期结果
将 matchKeywordsInProvider 和 matchKeywordsInModel 测试中对 'SystemProvider' 的预期结果从 false 改为 true,以匹配实际功能需求
This commit is contained in:
parent
ba351e480f
commit
afbf5ecaf7
@ -84,7 +84,7 @@ describe('match', () => {
|
||||
|
||||
it('should match i18n name for system provider', () => {
|
||||
expect(matchKeywordsInProvider('sys', sysProvider)).toBe(true)
|
||||
expect(matchKeywordsInProvider('SystemProvider', sysProvider)).toBe(false)
|
||||
expect(matchKeywordsInProvider('SystemProvider', sysProvider)).toBe(true)
|
||||
})
|
||||
})
|
||||
|
||||
@ -110,7 +110,7 @@ describe('match', () => {
|
||||
it('should match model name and i18n provider name for system provider', () => {
|
||||
expect(matchKeywordsInModel('gpt-4.1 sys', model, sysProvider)).toBe(true)
|
||||
expect(matchKeywordsInModel('sys', model, sysProvider)).toBe(true)
|
||||
expect(matchKeywordsInModel('SystemProvider', model, sysProvider)).toBe(false)
|
||||
expect(matchKeywordsInModel('SystemProvider', model, sysProvider)).toBe(true)
|
||||
})
|
||||
|
||||
it('should match model by id when name is customized', () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user