it("returns node-only gateway details when no local gateway is installed", async () => {
mocks.loadNodeHostConfig.mockResolvedValueOnce({
version: 1,
nodeId: "node-1",
gateway: { host: "gateway.example.com", port: 19000 },
});
await expect(
resolveNodeOnlyGatewayInfo({
daemon: { installed: false },
node: {
installed: true,
loaded: true,
externallyManaged: false,
runtimeShort: "running (pid 4321)",
},
}),
).resolves.toEqual({
gatewayTarget: "gateway.example.com:19000",
gatewayValue: "node → gateway.example.com:19000 · no local gateway",
connectionDetails: [ "Node-only mode detected", "Local gateway: not expected on this machine", "Remote gateway target: gateway.example.com:19000", "Inspect the remote gateway host for live channel and health details.",
].join("\n"),
});
});
it("does not claim node-only mode when the node service is installed but inactive", async () => {
mocks.loadNodeHostConfig.mockResolvedValueOnce({
version: 1,
nodeId: "node-1",
gateway: { host: "gateway.example.com", port: 19000 },
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.