mailship/test
Agent b54fb4f891 POST /notify/🆔 standardize response shape — always include stored field
Bug: when the event was not found at the relay, the handler returned
{ ok: true, skipped: true }, which did not match the documented contract
{ ok: true, stored: boolean } in README.md.

Fix: change the 'skipped' response to { ok: true, stored: false }, so the
response shape is consistent across all code paths.

- src/server.ts: changed line 287 from { ok: true, skipped: true } to
  { ok: true, stored: false }, with updated comment
- README.md: added a note documenting the skip case (stored: false)
- test/notify-response-shape.test.ts: new test that asserts stored=false
  and that skipped is never present
2026-09-14 13:42:11 -04:00
..
cors.test.sh fix: scope CORS to browser routes only, require CORS_ORIGIN (fail closed) 2026-09-10 11:29:18 -04:00
digest-template.test.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00
event-arrival-race.test.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00
integration.sh Fix integration test: add missing CORS_ORIGIN env var 2026-09-14 13:07:16 -04:00
normalize-relay-url.test.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00
notify-response-shape.test.ts POST /notify/🆔 standardize response shape — always include stored field 2026-09-14 13:42:11 -04:00
reschedule-on-frequency-change.test.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00
setup.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00