mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 17:41:24 -07:00
Improve test coverage for cli/src/ui/components (#13598)
This commit is contained in:
18
packages/cli/src/ui/components/UpdateNotification.test.tsx
Normal file
18
packages/cli/src/ui/components/UpdateNotification.test.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { render } from '../../test-utils/render.js';
|
||||
import { UpdateNotification } from './UpdateNotification.js';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
describe('UpdateNotification', () => {
|
||||
it('renders message', () => {
|
||||
const { lastFrame } = render(
|
||||
<UpdateNotification message="Update available!" />,
|
||||
);
|
||||
expect(lastFrame()).toContain('Update available!');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user