Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

369 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { isValidUrl } from "./is-valid-url";

describe("isValidUrl", () => {
  it("accepts absolute URLs and rejects anything else", () => {
    expect(isValidUrl(" https://gitea.example.com ")).toBe(true);
    expect(isValidUrl("gitea.example.com")).toBe(false);
    expect(isValidUrl("")).toBe(false);
  });
});