Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
import { describe, expect, it } from "vitest";
import { companyBoardUrl } from "@/lib/atsBoardUrl";
import { APP_CONSTANTS } from "@/lib/constants";
describe("companyBoardUrl", () => {
it("builds a Greenhouse board URL from the token", () => {
expect(companyBoardUrl("greenhouse", { token: "anthropic" })).toBe(
`${APP_CONSTANTS.GREENHOUSE_BOARD_URL}/anthropic`,
);
});
it("uses the US Lever host by default", () => {
expect(companyBoardUrl("lever", { token: "acme" })).toBe(
`${APP_CONSTANTS.LEVER_JOB_URL}/acme`,
);
});
it("uses the US Lever host when host is explicitly default", () => {
expect(companyBoardUrl("lever", { token: "acme", host: "default" })).toBe(
`${APP_CONSTANTS.LEVER_JOB_URL}/acme`,
);
});
it("uses the EU Lever host when host is eu", () => {
expect(companyBoardUrl("lever", { token: "acme", host: "eu" })).toBe(
`${APP_CONSTANTS.LEVER_EU_JOB_URL}/acme`,
);
});
it("ignores host for Greenhouse boards", () => {
expect(
companyBoardUrl("greenhouse", { token: "acme", host: "eu" }),
).toBe(`${APP_CONSTANTS.GREENHOUSE_BOARD_URL}/acme`);
});
it("builds an Ashby board URL from the token", () => {
expect(companyBoardUrl("ashby", { token: "ramp" })).toBe(
`${APP_CONSTANTS.ASHBY_JOB_URL}/ramp`,
);
});
it("ignores host for Ashby boards (single global host)", () => {
expect(companyBoardUrl("ashby", { token: "ramp", host: "eu" })).toBe(
`${APP_CONSTANTS.ASHBY_JOB_URL}/ramp`,
);
});
});