13 lines
400 B
TypeScript
13 lines
400 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(), "No computers connected.");
|
|
} finally {
|
|
await bridge.close();
|
|
}
|
|
});
|