Files
radicle-explorer/explorer/http-client/tests/client.test.ts
T
Rūdolfs Ošiņš e37521c739 Move explorer into explorer/
Makes explorer and desktop sibling projects, as proposed in ADR 1.
This commit only moves files; paths in CI, scripts and docs are fixed
in the following commits.
2026-10-22 11:06:33 +02: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();
});
});