mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
23 lines
415 B
TypeScript
23 lines
415 B
TypeScript
import { describe, test } from "vitest";
|
|
import { HttpdClient } from "../index";
|
|
|
|
const api = new HttpdClient({
|
|
hostname: "127.0.0.1",
|
|
port: 8080,
|
|
scheme: "http",
|
|
});
|
|
|
|
describe("client", () => {
|
|
test("#getNodeInfo()", async () => {
|
|
await api.getNodeInfo();
|
|
});
|
|
|
|
test("#getStats()", async () => {
|
|
await api.getStats();
|
|
});
|
|
|
|
test("#getNode()", async () => {
|
|
await api.getNode();
|
|
});
|
|
});
|