[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-06-12 22:36:59 +00:00
committed by GitHub
parent fa9a4fd7c4
commit c473be87e8

View File

@ -18,7 +18,12 @@ let flowStoreState: Record<string, unknown>;
jest.mock("@/stores/flowStore", () => ({
__esModule: true,
default: jest.fn((selector?: (state: unknown) => unknown) => {
const state = { setNodes, setEdges, setCurrentFlow, currentFlow: flowStoreState.currentFlow };
const state = {
setNodes,
setEdges,
setCurrentFlow,
currentFlow: flowStoreState.currentFlow,
};
return selector ? selector(state) : state;
}),
}));
@ -103,7 +108,8 @@ describe("useApplyTemplateToCurrentFlow", () => {
collaborationOperationMode: false,
onCollaborationOperations,
};
setStores(fullExamples); });
setStores(fullExamples);
});
it("should_call_setNodes_and_setEdges_with_template_data_when_template_is_applied", () => {
const { result } = renderHook(() => useApplyTemplateToCurrentFlow());