FreeDATA/freedata_gui/tests/api.test.js
2024-04-18 11:04:25 +02:00

8 lines
254 B
JavaScript

import { expect, test } from "vitest";
import { buildURL } from "../src/js/api";
test("builds URLs correctly"),
() => {
const params = { host: "127.0.0.1", port: 123 };
expect(buildURL(params, "/config")).toBe("http://127.0.0.1/config");
};