mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-16 22:59:04 +02:00
20 lines
581 B
TypeScript
20 lines
581 B
TypeScript
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);
|
|
},
|
|
);
|
|
});
|