feat(planning): ship holiday-aware planning and assistant upgrades

This commit is contained in:
2026-03-28 22:49:28 +01:00
parent 2a005794e7
commit 4f48afe7b4
151 changed files with 17738 additions and 1940 deletions
@@ -0,0 +1,30 @@
import assert from "node:assert/strict";
import test from "node:test";
import { getHolidayDemoCityNamesByCountry, getHolidayDemoProfileForIndex } from "./holiday-demo-profiles.js";
test("getHolidayDemoProfileForIndex rotates across the demo holiday profiles", () => {
assert.deepEqual(getHolidayDemoProfileForIndex(0), {
countryCode: "DE",
stateCode: "BW",
cityName: "Stuttgart",
});
assert.deepEqual(getHolidayDemoProfileForIndex(5), {
countryCode: "DE",
stateCode: "BY",
cityName: "Augsburg",
});
assert.deepEqual(getHolidayDemoProfileForIndex(12), {
countryCode: "DE",
stateCode: "BW",
cityName: "Stuttgart",
});
});
test("getHolidayDemoCityNamesByCountry exposes the required demo cities", () => {
assert.deepEqual(getHolidayDemoCityNamesByCountry(), {
DE: ["Augsburg", "Berlin", "Hamburg", "Koeln", "Muenchen", "Stuttgart"],
ES: ["Barcelona", "Madrid"],
IN: ["Bangalore", "Mumbai"],
US: ["Los Angeles", "New York"],
});
});