Skip to content

Commit 5a54920

Browse files
fix: update test to match PromptForm navigation route
1 parent c73e282 commit 5a54920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

__tests__/components/PromptForm.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe("PromptForm – authenticated submission", () => {
9696
expect(mockAddOptimistic).toHaveBeenCalledWith(
9797
expect.objectContaining({ title: "My Prompt", content: "Prompt content" })
9898
);
99-
expect(mockPush).toHaveBeenCalledWith("/");
99+
expect(mockPush).toHaveBeenCalledWith("/dashboard");
100100
});
101101

102102
it("defaults collection to 'uncategorized' when left blank", async () => {

0 commit comments

Comments
 (0)