Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

448 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { ATS_CATEGORIES, ATS_RULE_CATALOG_V1, ATS_RULE_CODES } from "./catalog";

describe("ATS_RULE_CATALOG_V1", () => {
	it("gives every rule a severity and a category", () => {
		for (const code of ATS_RULE_CODES) {
			const rule = ATS_RULE_CATALOG_V1[code];
			expect(["error", "warning", "info"]).toContain(rule.severity);
			expect(ATS_CATEGORIES).toContain(rule.category);
		}
	});
});