fix: simplify mock return values for QWEN.md in App tests
This commit is contained in:
parent
a45adbdc76
commit
e3a5806ae2
1 changed files with 2 additions and 8 deletions
|
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue