Files
radicle-explorer/http-client/tests/client.test.ts
T

25 lines
492 B
TypeScript

import { describe, test } from "vitest";
import { HttpdClient } from "@http-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();
});
});