Fix formatting

This commit is contained in:
Ola Hungerford
2025-03-24 09:27:51 -07:00
parent a7f25153c4
commit b7fa23676a

View File

@@ -12,9 +12,9 @@ describe("ToolsTab", () => {
inputSchema: { inputSchema: {
type: "object" as const, type: "object" as const,
properties: { properties: {
num: { type: "number" as const } num: { type: "number" as const },
} },
} },
}, },
{ {
name: "tool2", name: "tool2",
@@ -22,10 +22,10 @@ describe("ToolsTab", () => {
inputSchema: { inputSchema: {
type: "object" as const, type: "object" as const,
properties: { properties: {
num: { type: "number" as const } num: { type: "number" as const },
} },
} },
} },
]; ];
const defaultProps = { const defaultProps = {
@@ -37,20 +37,20 @@ describe("ToolsTab", () => {
setSelectedTool: jest.fn(), setSelectedTool: jest.fn(),
toolResult: null, toolResult: null,
nextCursor: "", nextCursor: "",
error: null error: null,
}; };
const renderToolsTab = (props = {}) => { const renderToolsTab = (props = {}) => {
return render( return render(
<Tabs defaultValue="tools"> <Tabs defaultValue="tools">
<ToolsTab {...defaultProps} {...props} /> <ToolsTab {...defaultProps} {...props} />
</Tabs> </Tabs>,
); );
}; };
it("should reset input values when switching tools", () => { it("should reset input values when switching tools", () => {
const { rerender } = renderToolsTab({ const { rerender } = renderToolsTab({
selectedTool: mockTools[0] selectedTool: mockTools[0],
}); });
// Enter a value in the first tool's input // Enter a value in the first tool's input
@@ -62,7 +62,7 @@ describe("ToolsTab", () => {
rerender( rerender(
<Tabs defaultValue="tools"> <Tabs defaultValue="tools">
<ToolsTab {...defaultProps} selectedTool={mockTools[1]} /> <ToolsTab {...defaultProps} selectedTool={mockTools[1]} />
</Tabs> </Tabs>,
); );
// Verify input is reset // Verify input is reset