PEP-123: tests follow the reworded rotation and channel messages

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Асель 2026-11-15 18:18:45 +05:00
parent 4888b37d9b
commit 20f3684466
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ describe("События платформы в канал", () => {
assert.equal(await core.announcePlatformBuild(db, { version: "0.16.0", commit: "b1c2d3e".padEnd(40, "1"), tasks: [k(59), k(61)] }), true);
const [msg] = await queued(CHANNEL);
assert.match(msg!, /Peppa v0\.16\.0 · b1c2d3e/);
assert.match(msg!, new RegExp(`Стори: ${k(59)}, ${k(61)}`));
assert.match(msg!, new RegExp(`Задачи: ${k(59)}, ${k(61)}`));
assert.match(msg!, /Версия и коммит в футере веба/);
// The same commit again — nothing new.
assert.equal(await core.announcePlatformBuild(db, { version: "0.16.0", commit: "b1c2d3e".padEnd(40, "1"), tasks: [] }), false);
@ -178,7 +178,7 @@ describe("События платформы в канал", () => {
assert.equal(await runner.platformBuildTick(db, { root: repo, force: true, now }), true);
const [msg] = await queued(CHANNEL);
assert.match(msg!, new RegExp(`Peppa v0\\.16\\.0 · ${git("rev-parse", "--short=7", "HEAD")}`));
assert.match(msg!, new RegExp(`Стори: ${pep.key}-70, ${pep.key}-72`));
assert.match(msg!, new RegExp(`Задачи: ${pep.key}-70, ${pep.key}-72`));
});
test("Сервис упал и поднялся", async () => {

View File

@ -124,7 +124,7 @@ describe("Переключение на свободную подписку пу
const after = await sess(sid);
assert.equal(after.subscriptionId, c2.id);
assert.equal((await switches(sid))[0]!.carried, "fresh");
assert.match(String(((await core.getOutbox(db, `rot:${sid}:g2:${CHAT}`))!.params as { text: string }).text), /Codex не переносит разговор/);
assert.match(String(((await core.getOutbox(db, `rot:${sid}:g2:${CHAT}`))!.params as { text: string }).text), /ChatGPT не переносит разговор/);
await runner.stopSession(db, sid);
});
});