Add tests

This commit is contained in:
Alexander Farber
2025-12-12 20:55:54 +01:00
parent a761be80a5
commit 2de50ae436
2 changed files with 591 additions and 2 deletions

View File

@@ -17,7 +17,8 @@ import { formatRelativeTime } from '../utils/formatters.js';
const PAGE_SIZE = 20;
interface SessionPickerProps {
// Exported for testing
export interface SessionPickerProps {
sessionService: SessionService;
currentBranch?: string;
onSelect: (sessionId: string) => void;
@@ -33,7 +34,8 @@ function truncateText(text: string, maxWidth: number): string {
return text.slice(0, maxWidth - 3) + '...';
}
function SessionPicker({
// Exported for testing
export function SessionPicker({
sessionService,
currentBranch,
onSelect,