mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-23 23:02:17 +10:00
Add application tracker REST and MCP parity
Add comprehensive Application Tracker REST and MCP coverage, document the MCP workflow, add Markdown/ActionLint checks, bump the release version, and fill all extracted translations.
This commit is contained in:
@@ -34,3 +34,52 @@ describe("applicationDto jobDescription", () => {
|
||||
).toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe("applicationDto document uploads", () => {
|
||||
it("accepts PDF application documents", () => {
|
||||
const file = new File(["%PDF-1.4"], "resume.pdf", { type: "application/pdf" });
|
||||
|
||||
const parsed = applicationDto.attachDocument.input.parse({
|
||||
id: "application-1",
|
||||
kind: "resume",
|
||||
file,
|
||||
});
|
||||
|
||||
expect(parsed.kind).toBe("resume");
|
||||
expect(parsed.file.name).toBe("resume.pdf");
|
||||
});
|
||||
|
||||
it("rejects non-PDF application documents", () => {
|
||||
const file = new File(["hello"], "cover.txt", { type: "text/plain" });
|
||||
|
||||
expect(() =>
|
||||
applicationDto.attachDocument.input.parse({
|
||||
id: "application-1",
|
||||
kind: "cover-letter",
|
||||
file,
|
||||
}),
|
||||
).toThrow();
|
||||
});
|
||||
|
||||
it("rejects unknown application document kinds", () => {
|
||||
const file = new File(["%PDF-1.4"], "resume.pdf", { type: "application/pdf" });
|
||||
|
||||
expect(() =>
|
||||
applicationDto.attachDocument.input.parse({
|
||||
id: "application-1",
|
||||
kind: "portfolio",
|
||||
file,
|
||||
}),
|
||||
).toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe("applicationDto zero-argument inputs", () => {
|
||||
it("normalizes stats input to an empty object", () => {
|
||||
expect(applicationDto.stats.input.parse(undefined)).toEqual({});
|
||||
});
|
||||
|
||||
it("normalizes tags input to an empty object", () => {
|
||||
expect(applicationDto.tags.input.parse(undefined)).toEqual({});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user