feat: use decline instead of reject

This commit is contained in:
Alex Andru 2025-07-04 12:09:51 +02:00
commit e6c8b946aa

View file

@ -138,14 +138,14 @@ describe("ElicitationRequest", () => {
});
});
it("should call onResolve with reject action when Decline button is clicked", async () => {
it("should call onResolve with decline action when Decline button is clicked", async () => {
renderElicitationRequest();
await act(async () => {
fireEvent.click(screen.getByRole("button", { name: /decline/i }));
});
expect(mockOnResolve).toHaveBeenCalledWith(1, { action: "reject" });
expect(mockOnResolve).toHaveBeenCalledWith(1, { action: "decline" });
});
it("should call onResolve with cancel action when Cancel button is clicked", async () => {