Skip to content

Add tests for history.ts (Dexie CRUD) #2168

Description

@felladrin

Split off from #2130.

History persistence in client/modules/history.ts is untested. The Dexie CRUD helpers (addSearchToHistory, getRecentSearches, and friends) have no coverage.

Task: Add tests using fake-indexeddb so they run in jsdom. Cover add/read/round-trip of the history entries.

Pattern to follow: server/webSearchService.test.ts (mock only at the boundary, assert real behavior).

Good first issue: self-contained module, runs in jsdom, no server setup needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions