/* @vitest-environment node */

import { describe, it, expect } from "vitest";
import { getGermanMonthName, formatMonthLabel } from "./formatters";

describe("lib/frontend/explorer/formatters", () => {
	it("returns German month names", () => {
		expect(getGermanMonthName("01")).toBe("Januar");
		expect(getGermanMonthName("12")).toBe("Dezember");
		expect(getGermanMonthName("99")).toBe(null);
	});

	it("formats month label as 'Name (MM)'", () => {
		expect(formatMonthLabel("01")).toBe("Januar (01)");
		expect(formatMonthLabel("10")).toBe("Oktober (10)");
		expect(formatMonthLabel("99")).toBe("99");
	});
});
