test(team): update settings test to include semanticSearchEnabled

This commit is contained in:
yiling
2026-05-28 23:54:00 +08:00
parent 40cb1986f4
commit a341c6d131
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -3595,7 +3595,7 @@ export const builtinProviders: Record<string, any> = {
"input": [ "input": [
"text" "text"
], ],
"contextWindow": 204800, "contextWindow": 262144,
"maxTokens": 8192, "maxTokens": 8192,
"cost": { "cost": {
"input": 0, "input": 0,
@@ -6580,11 +6580,11 @@ export const builtinProviders: Record<string, any> = {
"text" "text"
], ],
"contextWindow": 262144, "contextWindow": 262144,
"maxTokens": 262144, "maxTokens": 4096,
"cost": { "cost": {
"input": 0.06599999999999999, "input": 0.063,
"output": 0.26, "output": 0.21,
"cacheRead": 0.029, "cacheRead": 0.020999999999999998,
"cacheWrite": 0 "cacheWrite": 0
} }
} }
+2 -2
View File
@@ -174,12 +174,12 @@ describe('TeamService', () => {
}) })
const settings = await teamService.getSettings(team.id) const settings = await teamService.getSettings(team.id)
expect(settings).toEqual({}) expect(settings).toEqual({ semanticSearchEnabled: false })
await teamService.updateSettings(team.id, 'theme', 'dark') await teamService.updateSettings(team.id, 'theme', 'dark')
const newSettings = await teamService.getSettings(team.id) const newSettings = await teamService.getSettings(team.id)
expect(newSettings).toEqual({ theme: 'dark' }) expect(newSettings).toEqual({ theme: 'dark', semanticSearchEnabled: false })
}) })
it('should create sandbox when team is created', async () => { it('should create sandbox when team is created', async () => {