fix: address latest coderabbit review findings

This commit is contained in:
Cita
2026-03-23 15:24:00 +08:00
parent 426d9a538d
commit 764b9aa0e6
21 changed files with 472 additions and 46 deletions
@@ -9,4 +9,10 @@ describe('ModelTester debug panel extraction', () => {
expect(source).toContain("import DebugPanel from './model-tester/DebugPanel.js'");
expect(source).not.toContain('时间线');
});
it('keeps the debug timestamp prop aligned with the ISO string state used by ModelTester', () => {
const source = readFileSync(resolve(process.cwd(), 'src/web/pages/model-tester/DebugPanel.tsx'), 'utf8').replace(/\r\n/g, '\n');
expect(source).toContain('debugTimestamp: string | null;');
});
});