docs: clarify sandbox bind mounts (#790)
This commit is contained in:
@@ -109,7 +109,17 @@ describe("voice-call plugin", () => {
|
||||
|
||||
it("tool get_status returns json payload", async () => {
|
||||
const { tools } = setup({ provider: "mock" });
|
||||
const tool = tools[0] as { execute: (id: string, params: unknown) => any };
|
||||
type VoiceTool = {
|
||||
execute: (
|
||||
id: string,
|
||||
params: unknown,
|
||||
) =>
|
||||
| Promise<{ details: Record<string, unknown> }>
|
||||
| {
|
||||
details: Record<string, unknown>;
|
||||
};
|
||||
};
|
||||
const tool = tools[0] as VoiceTool;
|
||||
const result = await tool.execute("id", {
|
||||
action: "get_status",
|
||||
callId: "call-1",
|
||||
@@ -119,7 +129,17 @@ describe("voice-call plugin", () => {
|
||||
|
||||
it("legacy tool status without sid returns error payload", async () => {
|
||||
const { tools } = setup({ provider: "mock" });
|
||||
const tool = tools[0] as { execute: (id: string, params: unknown) => any };
|
||||
type VoiceTool = {
|
||||
execute: (
|
||||
id: string,
|
||||
params: unknown,
|
||||
) =>
|
||||
| Promise<{ details: Record<string, unknown> }>
|
||||
| {
|
||||
details: Record<string, unknown>;
|
||||
};
|
||||
};
|
||||
const tool = tools[0] as VoiceTool;
|
||||
const result = await tool.execute("id", { mode: "status" });
|
||||
expect(String(result.details.error)).toContain("sid required");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user