refactor(lolschedule): post-subscribe review — docs and stale option

- handlers.js header now reflects fan-out to subscribers, not a single chat.
- README "Time zone" references the correct command names and gains a
  Subscribers section; Files section lists subscribers.js.
- formatEventLine's showLeague option is dead in production (renderToday
  and renderWeek always group under a league header), so drop it and the
  test that covered only the option toggle.
This commit is contained in:
2026-04-21 10:38:37 +07:00
committed by Tien Nguyen Minh
parent 3e4e0e5b6e
commit de625aebf5
4 changed files with 16 additions and 19 deletions
+1 -5
View File
@@ -62,14 +62,10 @@ describe("formatIctTime / formatIctDayLabel", () => {
});
describe("formatEventLine", () => {
it("omits league name by default (renders under league header)", () => {
it("omits league name renders under a league header", () => {
expect(formatEventLine(evt())).not.toContain("LCK");
});
it("includes league name when showLeague is true", () => {
expect(formatEventLine(evt(), { showLeague: true })).toContain("LCK");
});
it("renders completed with bolded winner + score", () => {
const line = formatEventLine(completed);
expect(line.startsWith("✅")).toBe(true);