From 7b9e56bd8925ed2d1834fdac1210155862f37a7c Mon Sep 17 00:00:00 2001 From: Alex Cube Date: Mon, 26 Oct 2026 01:30:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82:=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=BA=D0=B0=20=D0=BD=D0=BE=D1=80=D0=BC=D1=8B=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- test/test_mytime.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_mytime.mjs b/test/test_mytime.mjs index 195482d..d05fb00 100644 --- a/test/test_mytime.mjs +++ b/test/test_mytime.mjs @@ -42,4 +42,10 @@ const must = ['>10:00<', '>4:55<', '>14:55<', 'осталось 5:05', 'T for (const s of must) if (!html.includes(s)) throw new Error('missing ' + s + '\n' + html); if (html.includes('#3')) throw new Error('September record counted'); if (calls.filter(c => c === 'task.elapseditem.getlist').length !== 3) throw new Error('pages: ' + calls); + +// норма превышена: 14:55 при норме 10 ч +globalThis.myTimeConfig = { norm: 10 }; +eval(fs.readFileSync(new URL('../extension/mytime.js', import.meta.url), 'utf8')); +await new Promise(r => setTimeout(r, 50)); +if (!els['mytime-out'].innerHTML.includes('Норма 10 ч выполнена, сверх нормы 4:55')) throw new Error('over norm\n' + els['mytime-out'].innerHTML); console.log('ok');