ci: trigga på master + formatfix inför Gitea Actions
CI / Typecheck, test & build (push) Failing after 2s
CI / Typecheck, test & build (push) Failing after 2s
This commit is contained in:
@@ -120,15 +120,17 @@ describe("buildWall", () => {
|
||||
expect(ok.value).toBe("OK");
|
||||
expect(ok.tone).toBe("ok");
|
||||
|
||||
const nere = buildWall(baseSummary({ jobb: { ...baseSummary().jobb, workers_ok: false } })).boards[0]!.tiles.find(
|
||||
(t) => t.label === "Workers",
|
||||
)!;
|
||||
const nere = buildWall(
|
||||
baseSummary({ jobb: { ...baseSummary().jobb, workers_ok: false } }),
|
||||
).boards[0]!.tiles.find((t) => t.label === "Workers")!;
|
||||
expect(nere.value).toBe("NERE");
|
||||
expect(nere.tone).toBe("warn");
|
||||
});
|
||||
|
||||
it("allergen-brott 0 är ok; >0 varnar", () => {
|
||||
const zero = buildWall(baseSummary()).boards[0]!.tiles.find((t) => t.label === "Allergen-brott")!;
|
||||
const zero = buildWall(baseSummary()).boards[0]!.tiles.find(
|
||||
(t) => t.label === "Allergen-brott",
|
||||
)!;
|
||||
expect(zero.value).toBe("0");
|
||||
expect(zero.tone).toBe("ok");
|
||||
|
||||
@@ -153,8 +155,12 @@ describe("buildWall", () => {
|
||||
});
|
||||
|
||||
it("ändrat summary-värde ändrar tile (inga hårdkodade tal)", () => {
|
||||
const first = buildWall(baseSummary({ anvandare: { ...baseSummary().anvandare, aktiva_nu: 1 } }));
|
||||
const second = buildWall(baseSummary({ anvandare: { ...baseSummary().anvandare, aktiva_nu: 2 } }));
|
||||
const first = buildWall(
|
||||
baseSummary({ anvandare: { ...baseSummary().anvandare, aktiva_nu: 1 } }),
|
||||
);
|
||||
const second = buildWall(
|
||||
baseSummary({ anvandare: { ...baseSummary().anvandare, aktiva_nu: 2 } }),
|
||||
);
|
||||
expect(first.boards[0]!.tiles.find((t) => t.label === "Aktiva nu")!.value).toBe("1");
|
||||
expect(second.boards[0]!.tiles.find((t) => t.label === "Aktiva nu")!.value).toBe("2");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user