mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-27 15:40:36 +08:00
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).
25 lines
483 B
TypeScript
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();
|
|
});
|
|
});
|