Files
radicle-explorer/http-client/tests/client.test.ts
T
Rūdolfs Ošiņš c72494f620 Enable localhost connections in radicle-explorer
Allow radicle-explorer to connect to a locally running radicle-httpd via
https://app.radicle.xyz/nodes/localhost. This was previously disabled to
encourage use of Radicle Desktop, but is now useful for testing the new
always-on node in local development environments.

Remove support for /nodes/radicle.local, an undocumented and unused convention.

Fix remote node loading when Cloudflare URL-encodes port separator (: → %3A).
2026-01-12 14:38:50 -06:00

25 lines
483 B
TypeScript

import { describe, test } from "vitest";
import { HttpdClient } from "@http-client";
import config from "@app/lib/config";
const api = new HttpdClient({
hostname: "127.0.0.1",
port: config.nodes.defaultHttpdPort,
scheme: "http",
});
describe("client", () => {
test("#getNodeInfo()", async () => {
await api.getNodeInfo();
});
test("#getStats()", async () => {
await api.getStats();
});
test("#getNode()", async () => {
await api.getNode();
});
});