fix: align tool definition adapter

This commit is contained in:
Peter Steinberger
2026-02-02 02:19:18 -08:00
parent 385e66cbd5
commit 9ae1b732ef
4 changed files with 11 additions and 11 deletions

View File

@@ -256,9 +256,9 @@ describe("msteams attachments", () => {
const fetchMock = vi.fn(async (_url: string, opts?: RequestInit) => {
const hasAuth = Boolean(
opts &&
typeof opts === "object" &&
"headers" in opts &&
(opts.headers as Record<string, string>)?.Authorization,
typeof opts === "object" &&
"headers" in opts &&
(opts.headers as Record<string, string>)?.Authorization,
);
if (!hasAuth) {
return new Response("forbidden", { status: 403 });