mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-21 16:41:56 +00:00
test(cli): use lightweight clear for gateway discover beacon mock
This commit is contained in:
@@ -143,7 +143,7 @@ describe("gateway-cli coverage", () => {
|
||||
},
|
||||
])("registers gateway discover and prints $label", async ({ args, expectedOutput }) => {
|
||||
resetRuntimeCapture();
|
||||
discoverGatewayBeacons.mockReset();
|
||||
discoverGatewayBeacons.mockClear();
|
||||
discoverGatewayBeacons.mockResolvedValueOnce([
|
||||
{
|
||||
instanceName: "Studio (OpenClaw)",
|
||||
@@ -168,7 +168,7 @@ describe("gateway-cli coverage", () => {
|
||||
|
||||
it("validates gateway discover timeout", async () => {
|
||||
resetRuntimeCapture();
|
||||
discoverGatewayBeacons.mockReset();
|
||||
discoverGatewayBeacons.mockClear();
|
||||
await expectGatewayExit(["gateway", "discover", "--timeout", "0"]);
|
||||
|
||||
expect(runtimeErrors.join("\n")).toContain("gateway discover failed:");
|
||||
|
||||
Reference in New Issue
Block a user