forked from fahrPool/fahrPool
test: add invalid-date case for validateSchichtKorrektur
This commit is contained in:
parent
d91765bd69
commit
070b1287c1
|
|
@ -15,6 +15,11 @@ describe("validateSchichtKorrektur", () => {
|
|||
expect(result).toEqual({ valid: false, error: "Bitte eine Geht-Uhrzeit angeben." });
|
||||
});
|
||||
|
||||
it("lehnt eine nicht parsebare Geht-Uhrzeit ab", () => {
|
||||
const result = validateSchichtKorrektur({ gehtUm: "garbage", kommtUm: "2026-07-13T06:00:00.000Z" });
|
||||
expect(result).toEqual({ valid: false, error: "Ungueltige Geht-Uhrzeit." });
|
||||
});
|
||||
|
||||
it("lehnt eine Geht-Uhrzeit vor der Kommt-Uhrzeit ab", () => {
|
||||
const result = validateSchichtKorrektur({
|
||||
gehtUm: "2026-07-13T05:00",
|
||||
|
|
|
|||
Loading…
Reference in New Issue