mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-27 15:40:36 +08:00
Also where possible use the `config.seeds.defaultHttpdPort` instead of hardcoding it. Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
25 lines
493 B
TypeScript
25 lines
493 B
TypeScript
import { describe, test } from "vitest";
|
|
|
|
import { HttpdClient } from "@httpd-client";
|
|
import { defaultHttpdPort } from "@tests/support/fixtures";
|
|
|
|
const api = new HttpdClient({
|
|
hostname: "127.0.0.1",
|
|
port: defaultHttpdPort,
|
|
scheme: "http",
|
|
});
|
|
|
|
describe("client", () => {
|
|
test("#getNodeInfo()", async () => {
|
|
await api.getNodeInfo();
|
|
});
|
|
|
|
test("#getStats()", async () => {
|
|
await api.getStats();
|
|
});
|
|
|
|
test("#getNode()", async () => {
|
|
await api.getNode();
|
|
});
|
|
});
|