Тест ночной проверки: поправлены интервалы
All checks were successful
ci / test (push) Successful in 57s
ci / deploy (push) Successful in 3m1s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-29 09:48:55 +03:00
parent b106f4141f
commit 5fedd4c508

View File

@@ -24,11 +24,11 @@ describe("ночная проверка упущенного", () => {
const msgs = [
m("1000", "Client confirmed paint for 734 Placido, ready for the order"),
m("1100", "Sorry, I could not process your message. The IT team has been notified.", { userId: null, botId: "B1" }),
m("5000", "Please meet Dan at 734 Placido on Monday about the driveway"),
m("5100", "Saved", { userId: null, botId: "B1" }),
m("20000", "Please meet Dan at 734 Placido on Monday about the driveway"),
m("20100", "Saved", { userId: null, botId: "B1" }),
];
expect(pickUnanswered(msgs, new Map()).map((x) => x.msg.ts)).toEqual(["1000"]);
expect(pickUnanswered(msgs, new Map([["5000", "failed"]])).map((x) => x.msg.ts)).toEqual(["1000", "5000"]);
expect(pickUnanswered(msgs, new Map([["20000", "failed"]])).map((x) => x.msg.ts)).toEqual(["1000", "20000"]);
});
it("разбирает раздел «Упущенные»", () => {