diff options
| author | Billy Biggs <[email protected]> | 2025-06-21 12:15:43 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-21 19:15:43 +0000 |
| commit | 99a6dc026708d91bb628873a769c615640a2c0ea (patch) | |
| tree | afd188378b191f3dca11ae571d9f29095bc6e7b4 /packages/cli/src/ui/App.test.tsx | |
| parent | 03af6235a922c3cf753ce0b1e257830dee5340aa (diff) | |
Update memory and context summary UI for multiple context filenames (#1282)
Diffstat (limited to 'packages/cli/src/ui/App.test.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.test.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/cli/src/ui/App.test.tsx b/packages/cli/src/ui/App.test.tsx index c60e5143..1271c86a 100644 --- a/packages/cli/src/ui/App.test.tsx +++ b/packages/cli/src/ui/App.test.tsx @@ -260,7 +260,7 @@ describe('App UI', () => { it('should display custom contextFileName in footer when set and count is 1', async () => { mockSettings = createMockSettings({ - contextFileName: 'AGENTS.MD', + contextFileName: 'AGENTS.md', theme: 'Default', }); mockConfig.getGeminiMdFileCount.mockReturnValue(1); @@ -275,12 +275,12 @@ describe('App UI', () => { ); currentUnmount = unmount; await Promise.resolve(); - expect(lastFrame()).toContain('Using 1 AGENTS.MD file'); + expect(lastFrame()).toContain('Using 1 AGENTS.md file'); }); - it('should display the first custom contextFileName when an array is provided', async () => { + it('should display a generic message when multiple context files with different names are provided', async () => { mockSettings = createMockSettings({ - contextFileName: ['AGENTS.MD', 'CONTEXT.MD'], + contextFileName: ['AGENTS.md', 'CONTEXT.md'], theme: 'Default', }); mockConfig.getGeminiMdFileCount.mockReturnValue(2); @@ -295,7 +295,7 @@ describe('App UI', () => { ); currentUnmount = unmount; await Promise.resolve(); - expect(lastFrame()).toContain('Using 2 AGENTS.MD files'); + expect(lastFrame()).toContain('Using 2 context files'); }); it('should display custom contextFileName with plural when set and count is > 1', async () => { |
