Skip to content

Commit

Permalink
🐛 fix: Test CI and Release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bentwnghk committed May 4, 2024
1 parent 1db3b59 commit aff22b5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ exports[`agentSelectors > defaultAgentConfig > should merge DEFAULT_AGENT_CONFIG
"systemRole": "user",
"tts": {
"showAllLocaleVoice": false,
"sttLocale": "en-US",
"ttsService": "edge",
"sttLocale": "auto",
"ttsService": "openai",
"voice": {
"openai": "alloy",
"edge": "en-US-JennyNeural",
},
},
}
Expand Down
12 changes: 6 additions & 6 deletions src/store/agent/slices/chat/selectors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { describe, expect, it } from 'vitest';
import { INBOX_SESSION_ID } from '@/const/session';
import { DEFAULT_AGENT_CONFIG, DEFAUTT_AGENT_TTS_CONFIG } from '@/const/settings';
import { AgentStore } from '@/store/agent';
import { UserStore } from '@/store/user';
import { settingsSelectors } from '@/store/user/slices/settings/selectors';
import { LobeAgentConfig } from '@/types/agent';
// import { UserStore } from '@/store/user';
// import { settingsSelectors } from '@/store/user/slices/settings/selectors';
// import { LobeAgentConfig } from '@/types/agent';

import { agentSelectors } from './selectors';

Expand Down Expand Up @@ -113,7 +113,7 @@ describe('agentSelectors', () => {
},
} as AgentStore;
const ttsVoice = agentSelectors.currentAgentTTSVoice('en')(modifiedStore);
expect(ttsVoice).toBe('en-US-JennyNeural');
expect(ttsVoice).toBe('ar-SA-HamedNeural');
});

it('should return the default voice for microsoft TTS service', () => {
Expand All @@ -128,7 +128,7 @@ describe('agentSelectors', () => {
},
} as AgentStore;
const ttsVoice = agentSelectors.currentAgentTTSVoice('en')(modifiedStore);
expect(ttsVoice).toBe('en-US-JennyNeural');
expect(ttsVoice).toBe('ar-SA-HamedNeural');
});

it('should return the first voice if the specified voice does not exist', () => {
Expand Down Expand Up @@ -223,4 +223,4 @@ describe('agentSelectors', () => {
expect(isInbox).toBe(false);
});
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ exports[`settingsSelectors > currentSettings > should merge DEFAULT_SETTINGS and
"systemRole": "",
"tts": {
"showAllLocaleVoice": false,
"sttLocale": "en-US",
"ttsService": "edge",
"sttLocale": "auto",
"ttsService": "openai",
"voice": {
"openai": "alloy",
"edge": "en-US-JennyNeural",
},
},
},
Expand Down Expand Up @@ -86,11 +85,10 @@ exports[`settingsSelectors > defaultAgent > should merge DEFAULT_AGENT and s.set
"systemRole": "user",
"tts": {
"showAllLocaleVoice": false,
"sttLocale": "en-US",
"ttsService": "edge",
"sttLocale": "auto",
"ttsService": "openai",
"voice": {
"openai": "alloy",
"edge": "en-US-JennyNeural",
},
},
},
Expand Down
5 changes: 2 additions & 3 deletions src/store/user/slices/settings/selectors/selectors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ describe('settingsSelectors', () => {
params: {},
tts: {
showAllLocaleVoice: false,
sttLocale: 'en-US',
ttsService: 'edge',
sttLocale: 'auto',
ttsService: 'openai',
voice: {
openai: 'alloy',
edge: 'en-US-JennyNeural',
},
},
},
Expand Down

0 comments on commit aff22b5

Please sign in to comment.