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 { warnInsufficientResumeSections } from "@/utils/resumeSections.utils";
import { buildInsufficientSectionsMessage } from "@/lib/resumeSections";
const mockToastError = vi.fn();
vi.mock("@/lib/toast", () => ({
toastError: (...args: any[]) => mockToastError(...args),
}));
describe("warnInsufficientResumeSections", () => {
it("shows a destructive toast with the built message", () => {
warnInsufficientResumeSections("setting this resume as default");
expect(mockToastError).toHaveBeenCalledWith(
buildInsufficientSectionsMessage("setting this resume as default"),
"Not enough content",
);
});
it("forwards the hint through to the built message", () => {
warnInsufficientResumeSections(
"running a review",
"e.g. Summary and Experience",
);
expect(mockToastError).toHaveBeenCalledWith(
buildInsufficientSectionsMessage(
"running a review",
"e.g. Summary and Experience",
),
"Not enough content",
);
});
});