mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
* feat(panel): Journals joins the Agents hub as its third tab * docs(map): Journals tab on the Agents hub; registry retargets --------- Co-authored-by: Renn F <rennf93@users.noreply.github.com>
14 lines
393 B
TypeScript
14 lines
393 B
TypeScript
import { describe, it, expect, vi } from "vitest";
|
|
|
|
const { redirect } = vi.hoisted(() => ({ redirect: vi.fn() }));
|
|
vi.mock("next/navigation", () => ({ redirect }));
|
|
|
|
import JournalsPage from "../page";
|
|
|
|
describe("JournalsPage", () => {
|
|
it("redirects to the Agents hub's Journals tab", () => {
|
|
JournalsPage();
|
|
expect(redirect).toHaveBeenCalledWith("/agents?tab=journals");
|
|
});
|
|
});
|