Files
radicle-explorer/httpd-client/tests/client.test.ts
T
Sebastian Martinez 14ba807e55 Set the httpd port for the test suite to be 8081.
Also where possible use the `config.seeds.defaultHttpdPort` instead of
hardcoding it.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-17 15:19:31 +02:00

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();
});
});