Skip to content

Commit 09256c9

Browse files
committed
npm run prettier:fix
1 parent 6af02a9 commit 09256c9

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

src/app-bridge.test.ts

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -773,9 +773,7 @@ describe("App <-> AppBridge integration", () => {
773773
}) as any,
774774
},
775775
async (args: any) => ({
776-
content: [
777-
{ type: "text" as const, text: `Got: ${args.required}` },
778-
],
776+
content: [{ type: "text" as const, text: `Got: ${args.required}` }],
779777
}),
780778
);
781779

@@ -856,13 +854,9 @@ describe("App <-> AppBridge integration", () => {
856854
).rejects.toThrow("Tool dynamic-tool not found");
857855

858856
// Re-register with different behavior
859-
app.registerTool(
860-
"dynamic-tool",
861-
{},
862-
async (_args: any) => ({
863-
content: [{ type: "text" as const, text: "Version 2" }],
864-
}),
865-
);
857+
app.registerTool("dynamic-tool", {}, async (_args: any) => ({
858+
content: [{ type: "text" as const, text: "Version 2" }],
859+
}));
866860

867861
// Should work with new version
868862
result = await bridge.sendCallTool({
@@ -927,7 +921,9 @@ describe("App <-> AppBridge integration", () => {
927921
await app.connect(appTransport);
928922

929923
// Register then remove a tool to initialize handlers
930-
const dummy = app.registerTool("init", {}, async () => ({ content: [] }));
924+
const dummy = app.registerTool("init", {}, async () => ({
925+
content: [],
926+
}));
931927
dummy.remove();
932928

933929
// Initially no tools
@@ -997,12 +993,20 @@ describe("App <-> AppBridge integration", () => {
997993
const appCapabilities = { tools: { listChanged: true } };
998994
app = new App(testAppInfo, appCapabilities, { autoResize: false });
999995

1000-
const tool1 = app.registerTool("enabled-tool", {}, async (_args: any) => ({
1001-
content: [],
1002-
}));
1003-
const tool2 = app.registerTool("disabled-tool", {}, async (_args: any) => ({
1004-
content: [],
1005-
}));
996+
const tool1 = app.registerTool(
997+
"enabled-tool",
998+
{},
999+
async (_args: any) => ({
1000+
content: [],
1001+
}),
1002+
);
1003+
const tool2 = app.registerTool(
1004+
"disabled-tool",
1005+
{},
1006+
async (_args: any) => ({
1007+
content: [],
1008+
}),
1009+
);
10061010

10071011
await app.connect(appTransport);
10081012

@@ -1046,7 +1050,9 @@ describe("App <-> AppBridge integration", () => {
10461050
name: "counter",
10471051
arguments: {},
10481052
});
1049-
expect(callResult.content).toEqual([{ type: "text", text: "Count: 1" }]);
1053+
expect(callResult.content).toEqual([
1054+
{ type: "text", text: "Count: 1" },
1055+
]);
10501056

10511057
// Update tool description
10521058
tool.update({ description: "An updated counter tool" });

0 commit comments

Comments
 (0)