+
+ {context.draft ? "Draft Exists" : "No Draft"}
+
+
+
+
+
+ );
+};
+
+describe("DraftProviderV2", () => {
+ const mockOpenEventForm = jest.fn();
+ const mockCloseEventForm = jest.fn();
+ const mockOnSave = jest.fn();
+
+ beforeEach(() => {
+ (useOpenEventForm as jest.Mock).mockReturnValue(mockOpenEventForm);
+ (useCloseEventForm as jest.Mock).mockReturnValue(mockCloseEventForm);
+ (useSaveEventForm as jest.Mock).mockReturnValue(mockOnSave);
+ });
+
+ it("should provide draft context values", () => {
+ render(
+