fix: simplify mock return values for QWEN.md in App tests

This commit is contained in:
AstroAir
2025-08-10 10:19:47 +08:00
parent a45adbdc76
commit e3a5806ae2

View File

@@ -614,10 +614,7 @@ describe('App UI', () => {
it('should display default "QWEN.md" with plural when contextFileName is not set and count is > 1', async () => {
mockConfig.getGeminiMdFileCount.mockReturnValue(2);
mockConfig.getAllGeminiMdFilenames.mockReturnValue([
'QWEN.md',
'QWEN.md',
]);
mockConfig.getAllGeminiMdFilenames.mockReturnValue(['QWEN.md', 'QWEN.md']);
mockConfig.getDebugMode.mockReturnValue(false);
mockConfig.getShowMemoryUsage.mockReturnValue(false);
@@ -729,10 +726,7 @@ describe('App UI', () => {
it('should display QWEN.md and MCP server count when both are present', async () => {
mockConfig.getGeminiMdFileCount.mockReturnValue(2);
mockConfig.getAllGeminiMdFilenames.mockReturnValue([
'QWEN.md',
'QWEN.md',
]);
mockConfig.getAllGeminiMdFilenames.mockReturnValue(['QWEN.md', 'QWEN.md']);
mockConfig.getMcpServers.mockReturnValue({
server1: {} as MCPServerConfig,
});