Minor tweak to make test code more idiomatic
This commit is contained in:
parent
aac1959855
commit
bb28c9b519
1 changed files with 6 additions and 6 deletions
|
|
@ -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}`,
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue