mirror of
https://github.com/bitbaum/openclaw.git
synced 2026-12-06 04:18:00 +01:00
test(plugin-sdk): satisfy tool payload carrier typing
This commit is contained in:
1 parent
be530f085d
commit
d99e8ce619
1 file changed
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { extractToolPayload } from "./tool-payload.js";
|
||||
import { extractToolPayload, type ToolPayloadCarrier } from "./tool-payload.js";
|
||||
|
||||
describe("extractToolPayload", () => {
|
||||
it("returns undefined for missing results", () => {
|
||||
@@ -39,7 +39,7 @@ describe("extractToolPayload", () => {
|
||||
}),
|
||||
).toBe(content);
|
||||
|
||||
const result = { status: "ok" };
|
||||
const result = { status: "ok" } as ToolPayloadCarrier & { status: string };
|
||||
expect(extractToolPayload(result)).toBe(result);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user