mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 19:14:33 -07:00
22 lines
551 B
TypeScript
22 lines
551 B
TypeScript
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright 2025 Google LLC
|
||
|
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { Text } from 'ink';
|
||
|
|
import { describe, it, expect } from 'vitest';
|
||
|
|
import { StickyHeader } from './StickyHeader.js';
|
||
|
|
import { renderWithProviders } from '../../test-utils/render.js';
|
||
|
|
|
||
|
|
describe('StickyHeader', () => {
|
||
|
|
it('renders children', () => {
|
||
|
|
const { lastFrame } = renderWithProviders(
|
||
|
|
<StickyHeader width={80}>
|
||
|
|
<Text>Hello Sticky</Text>
|
||
|
|
</StickyHeader>,
|
||
|
|
);
|
||
|
|
expect(lastFrame()).toContain('Hello Sticky');
|
||
|
|
});
|
||
|
|
});
|