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"], }); });