Add birthday previews and restore checklist taps

This commit is contained in:
Codex 2026-10-05 19:54:15 +01:00
parent d2c7f004ea
commit aaa3013890
11 changed files with 146 additions and 27 deletions

18
tests/test_data.js Normal file
View file

@ -0,0 +1,18 @@
const assert = require("node:assert/strict");
global.window = {};
require("../static/data.js");
const data = global.window.VALLEY_DATA;
const birthdayNames = Object.values(data.birthdays)
.flatMap(days => Object.values(days))
.map(([name]) => name);
for (const name of birthdayNames) {
const profile = data.giftProfiles[name];
assert.ok(profile, `${name} needs a gift profile`);
assert.ok(profile.loves.length > 0, `${name} needs a loved gift`);
assert.ok(profile.avoid.length > 0, `${name} needs a gift to avoid`);
}
console.log("birthday gift data tests passed");