import { describe, it, expect } from "vitest"
import { resolveSearchEmptyState } from "@/lib/ui/search-empty-state"

describe("ProjectDocumentsClient — empty-state branching", () => {
  it("offers the upload CTA when the selected project has no documents", () => {
    expect(resolveSearchEmptyState(false, 0)).toBe("empty")
  })

  it("offers reset-filter when documents exist but the active filters matched none", () => {
    expect(resolveSearchEmptyState(false, 23)).toBe("no-results")
  })
})
