Files
copenlight/src/modules/approval-requests/components/approval-request/clarification/hooks/tests/useSubmitComment.test.ts
Ivan Carlos de Almeida 6fa41a771d
Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 2s
Sync Repo / sync (push) Failing after 2s
first load
2025-12-16 04:40:00 -03:00

13 lines
415 B
TypeScript

import { renderHook } from "@testing-library/react-hooks";
import { useSubmitComment } from "../useSubmitComment";
describe("useSubmitComment", () => {
it("should return initial values", () => {
const { result } = renderHook(() => useSubmitComment());
const { handleSubmitComment, isLoading } = result.current;
expect(handleSubmitComment).toBeDefined();
expect(isLoading).toBe(false);
});
});