cc-libs/tools/mcp-bridge/test-integration/probe-empty.test.ts

13 lines
413 B
TypeScript

import assert from "node:assert/strict";
import test from "node:test";
import { callProbeComputers, startBridge } from "./harness.js";
test("probe-computers returns the no-computers message when nothing is connected", async () => {
const bridge = await startBridge();
try {
assert.equal(await callProbeComputers(bridge.mcpUrl), "No computers connected.");
} finally {
await bridge.close();
}
});