Files
radicle-explorer/httpd-client/tests/client.test.ts
T
2023-04-11 15:31:08 +02:00

23 lines
407 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("#getRoot()", async () => {
await api.getRoot();
});
test("#getStats()", async () => {
await api.getStats();
});
test("#getNode()", async () => {
await api.getNode();
});
});