mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: simplify mock return values for QWEN.md in App tests
This commit is contained in:
@@ -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 () => {
|
it('should display default "QWEN.md" with plural when contextFileName is not set and count is > 1', async () => {
|
||||||
mockConfig.getGeminiMdFileCount.mockReturnValue(2);
|
mockConfig.getGeminiMdFileCount.mockReturnValue(2);
|
||||||
mockConfig.getAllGeminiMdFilenames.mockReturnValue([
|
mockConfig.getAllGeminiMdFilenames.mockReturnValue(['QWEN.md', 'QWEN.md']);
|
||||||
'QWEN.md',
|
|
||||||
'QWEN.md',
|
|
||||||
]);
|
|
||||||
mockConfig.getDebugMode.mockReturnValue(false);
|
mockConfig.getDebugMode.mockReturnValue(false);
|
||||||
mockConfig.getShowMemoryUsage.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 () => {
|
it('should display QWEN.md and MCP server count when both are present', async () => {
|
||||||
mockConfig.getGeminiMdFileCount.mockReturnValue(2);
|
mockConfig.getGeminiMdFileCount.mockReturnValue(2);
|
||||||
mockConfig.getAllGeminiMdFilenames.mockReturnValue([
|
mockConfig.getAllGeminiMdFilenames.mockReturnValue(['QWEN.md', 'QWEN.md']);
|
||||||
'QWEN.md',
|
|
||||||
'QWEN.md',
|
|
||||||
]);
|
|
||||||
mockConfig.getMcpServers.mockReturnValue({
|
mockConfig.getMcpServers.mockReturnValue({
|
||||||
server1: {} as MCPServerConfig,
|
server1: {} as MCPServerConfig,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user