fix: update default category counts for expenses and revenues in tests
Build and Push Docker Image / build (push) Successful in 2m5s

This commit is contained in:
hwinkel
2026-05-09 12:00:23 +02:00
parent 29619658fc
commit 0e62f0f80b
+8 -8
View File
@@ -6,8 +6,8 @@ import {
describe("kategorie-defaults.ts", () => { describe("kategorie-defaults.ts", () => {
describe("DEFAULT_AUSGABE_KATEGORIEN", () => { describe("DEFAULT_AUSGABE_KATEGORIEN", () => {
it("should have 15 default expense categories", () => { it("should have 17 default expense categories", () => {
expect(DEFAULT_AUSGABE_KATEGORIEN).toHaveLength(15); expect(DEFAULT_AUSGABE_KATEGORIEN).toHaveLength(17);
}); });
it("should include common expense categories", () => { it("should include common expense categories", () => {
@@ -48,8 +48,8 @@ describe("kategorie-defaults.ts", () => {
}); });
describe("DEFAULT_EINNAHME_KATEGORIEN", () => { describe("DEFAULT_EINNAHME_KATEGORIEN", () => {
it("should have 9 default revenue categories", () => { it("should have 10 default revenue categories", () => {
expect(DEFAULT_EINNAHME_KATEGORIEN).toHaveLength(9); expect(DEFAULT_EINNAHME_KATEGORIEN).toHaveLength(10);
}); });
it("should include Fußpflege category", () => { it("should include Fußpflege category", () => {
@@ -145,8 +145,8 @@ describe("kategorie-defaults.ts", () => {
typ: "EINNAHME" as const, typ: "EINNAHME" as const,
})); }));
expect(defaultExpenseCategories).toHaveLength(15); expect(defaultExpenseCategories).toHaveLength(17);
expect(defaultRevenueCategories).toHaveLength(9); expect(defaultRevenueCategories).toHaveLength(10);
expect(defaultExpenseCategories[0].typ).toBe("AUSGABE"); expect(defaultExpenseCategories[0].typ).toBe("AUSGABE");
expect(defaultRevenueCategories[0].typ).toBe("EINNAHME"); expect(defaultRevenueCategories[0].typ).toBe("EINNAHME");
}); });
@@ -157,8 +157,8 @@ describe("kategorie-defaults.ts", () => {
"Custom Expense Category", "Custom Expense Category",
]; ];
expect(customCategories.length).toBe(16); // 15 defaults + 1 custom expect(customCategories.length).toBe(18); // 17 defaults + 1 custom
expect(customCategories[15]).toBe("Custom Expense Category"); expect(customCategories[customCategories.length - 1]).toBe("Custom Expense Category");
}); });
}); });