sciagent code + Gitea Actions CI/CD
CI/CD / backend (push) Failing after 2m8s
CI/CD / frontend (push) Failing after 1m40s
CI/CD / deploy (push) Has been skipped

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Thinh Lam
2026-06-30 09:38:30 +07:00
commit 688fac73e9
1167 changed files with 158244 additions and 0 deletions
@@ -0,0 +1,35 @@
import { describe, expect, it } from "vitest";
import { getApplicationMeritCategoryHint } from "@/components/admin/review/applicationMeritCategoryHint";
describe("getApplicationMeritCategoryHint", () => {
it("returns trung bình for research + poster-without-review (2.1.4)", () => {
const hint = getApplicationMeritCategoryHint({
initiativeClassification: "research",
researchEvidenceKind: "poster-without-review",
textbookEvidenceKind: "",
});
expect(hint.subgroupCode).toBe("2.1.4");
expect(hint.meritLevel).toBe("trung bình");
expect(hint.detail).toContain("không phản biện");
});
it("returns khá for research + poster (2.1.3)", () => {
const hint = getApplicationMeritCategoryHint({
initiativeClassification: "research",
researchEvidenceKind: "poster",
textbookEvidenceKind: "",
});
expect(hint.subgroupCode).toBe("2.1.3");
expect(hint.meritLevel).toBe("khá");
});
it("returns xuất sắc for textbook + book (sách giáo trình)", () => {
const hint = getApplicationMeritCategoryHint({
initiativeClassification: "textbook",
researchEvidenceKind: "",
textbookEvidenceKind: "book",
});
expect(hint.subgroupCode).toBe("2.2.1");
expect(hint.meritLevel).toBe("xuất sắc");
});
});