Тест ночной проверки: поправлены интервалы
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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("разбирает раздел «Упущенные»", () => {
|
||||
|
||||
Reference in New Issue
Block a user