test: Widerrufsbelehrung als Voraussetzung fuer den Live-Verkauf
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
7203cd1e6e
commit
5c4b8be7ff
1 file changed
+5
-1
@@ -20,6 +20,8 @@ const unreleased: CampGateFields = {
|
||||
taxConfirmed: false,
|
||||
termsVersion: null,
|
||||
termsApproved: false,
|
||||
withdrawalText: null,
|
||||
withdrawalApproved: false,
|
||||
travelLawChecked: false,
|
||||
installmentsApproved: false,
|
||||
installmentRuleApproved: false,
|
||||
@@ -46,6 +48,8 @@ const released: CampGateFields = {
|
||||
taxConfirmed: true,
|
||||
termsVersion: "1",
|
||||
termsApproved: true,
|
||||
withdrawalText: "Belehrung",
|
||||
withdrawalApproved: true,
|
||||
travelLawChecked: true,
|
||||
};
|
||||
|
||||
@@ -56,7 +60,7 @@ describe("Verkaufsfreigabe", () => {
|
||||
const state = evaluateSales(earlyBird, unreleased, "live");
|
||||
expect(state.checkoutOpen).toBe(false);
|
||||
expect(state.closedReason).toBe("NOT_RELEASED");
|
||||
expect(state.releaseBlockers).toHaveLength(11);
|
||||
expect(state.releaseBlockers).toHaveLength(12);
|
||||
});
|
||||
|
||||
test("Livemodus: eine einzige fehlende Freigabe sperrt den Verkauf", () => {
|
||||
|
||||
Reference in new issue
Block a user