Minor tweak to make test code more idiomatic

This commit is contained in:
Justin Spahr-Summers 2025-01-07 15:57:10 +00:00
commit bb28c9b519
No known key found for this signature in database

View file

@ -606,11 +606,11 @@ describe("Server.tool", () => {
name: z.string(),
value: z.number(),
},
async (args) => ({
async ({ name, value }) => ({
content: [
{
type: "text",
text: `${args.name}: ${args.value}`,
text: `${name}: ${value}`,
},
],
}),
@ -705,11 +705,11 @@ describe("Server.tool", () => {
name: z.string(),
value: z.number(),
},
async (args) => ({
async ({ name, value }) => ({
content: [
{
type: "text",
text: `${args.name}: ${args.value}`,
text: `${name}: ${value}`,
},
],
}),
@ -791,11 +791,11 @@ describe("Server.tool", () => {
{
input: z.string(),
},
async (args) => ({
async ({ input }) => ({
content: [
{
type: "text",
text: `Processed: ${args.input}`,
text: `Processed: ${input}`,
},
],
}),