Fix formatting
This commit is contained in:
parent
7753b275e5
commit
180760c4db
1 changed files with 7 additions and 6 deletions
|
|
@ -85,17 +85,18 @@ describe("ToolsTab", () => {
|
||||||
selectedTool: mockTools[1], // Use the tool with integer type
|
selectedTool: mockTools[1], // Use the tool with integer type
|
||||||
});
|
});
|
||||||
|
|
||||||
const input = screen.getByRole("textbox", { name: /count/i }) as HTMLInputElement;
|
const input = screen.getByRole("textbox", {
|
||||||
|
name: /count/i,
|
||||||
|
}) as HTMLInputElement;
|
||||||
expect(input).toHaveProperty("type", "number");
|
expect(input).toHaveProperty("type", "number");
|
||||||
fireEvent.change(input, { target: { value: "42" } });
|
fireEvent.change(input, { target: { value: "42" } });
|
||||||
expect(input.value).toBe("42");
|
expect(input.value).toBe("42");
|
||||||
|
|
||||||
const submitButton = screen.getByRole("button", { name: /run tool/i });
|
const submitButton = screen.getByRole("button", { name: /run tool/i });
|
||||||
fireEvent.click(submitButton);
|
fireEvent.click(submitButton);
|
||||||
|
|
||||||
expect(defaultProps.callTool).toHaveBeenCalledWith(
|
expect(defaultProps.callTool).toHaveBeenCalledWith(mockTools[1].name, {
|
||||||
mockTools[1].name,
|
count: 42,
|
||||||
{ count: 42 }
|
});
|
||||||
);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue