Extract custom hooks for reusable logic

This commit is contained in:
adilallo
2026-01-26 12:51:27 -07:00
parent f513aecacc
commit 86d7cff5d4
21 changed files with 1590 additions and 141 deletions
+10 -5
View File
@@ -163,11 +163,16 @@ describe("AskOrganizer Component", () => {
});
await user.click(button);
expect(gtagSpy).toHaveBeenCalledWith("event", "contact_button_click", {
event_category: "engagement",
event_label: "ask_organizer",
value: 1,
});
// Verify gtag was called with the expected event
expect(gtagSpy).toHaveBeenCalledWith(
"event",
"contact_button_click",
expect.objectContaining({
event_category: "engagement",
event_label: "ask_organizer",
value: 1,
}),
);
});
test("renders with proper accessibility attributes", () => {