mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-04-28 20:20:57 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user