Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
609 B
Raw Blame
// @vitest-environment node
import { describe, expect, it } from "vitest";

import { isOfficialMarketingHost } from "./public-host";

describe("isOfficialMarketingHost", () => {
  it.each(["multica.ai", "www.multica.ai", "MULTICA.AI", "multica.ai."])(
    "recognizes %s as an official marketing host",
    (host) => {
      expect(isOfficialMarketingHost(host)).toBe(true);
    },
  );

  it.each(["app.multica.ai", "api.multica.ai", "localhost", "multica.test"])(
    "does not treat %s as the public marketing host",
    (host) => {
      expect(isOfficialMarketingHost(host)).toBe(false);
    },
  );
});