// @vitest-environment happy-dom
import { afterEach, describe, expect, it } from "vitest";
import { cleanup, render } from "@testing-library/react";
import { InboxHeader } from "./InboxHeader";

afterEach(() => cleanup());

describe("InboxHeader", () => {
  it("renders the date and counts", () => {
    const { container } = render(<InboxHeader needEyesCount={6} doneTodayCount={23} />);
    expect(container.textContent).toMatch(/6.*items need eyes/);
    expect(container.textContent).toMatch(/23.*done today/);
  });
});
