mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-05 15:09:42 +02:00
fix: resolve 11 failing tests across 8 test files
- ralph-tracker: add ✓ to native todo pattern + pre-check, add configure() method - session: remove stale message expectation from interactive endpoint test - buffer-management: fix trim count expectations (1202 items triggers second trim) - cli-commands: replace non-existent toStartWith with toMatch regex - edge-cases: update error expectation for session-not-found on respawn config PUT - ralph-integration: respawn config PUT without controller now saves as pre-config - session-state: fix debouncer shouldFlush(0) - pass timestamp >= delayMs - timing-utilities: attach catch handlers before advancing fake timers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -155,7 +155,7 @@ describe('Buffer Management', () => {
|
||||
|
||||
it('should trim when over limit', () => {
|
||||
const store = new MessageStore<number>();
|
||||
for (let i = 0; i < 1200; i++) {
|
||||
for (let i = 0; i < 1202; i++) {
|
||||
store.add(i);
|
||||
}
|
||||
expect(store.count).toBe(TRIM_MESSAGES_TO);
|
||||
@@ -163,12 +163,12 @@ describe('Buffer Management', () => {
|
||||
|
||||
it('should keep recent messages', () => {
|
||||
const store = new MessageStore<number>();
|
||||
for (let i = 0; i < 1200; i++) {
|
||||
for (let i = 0; i < 1202; i++) {
|
||||
store.add(i);
|
||||
}
|
||||
const all = store.all;
|
||||
expect(all[all.length - 1]).toBe(1199);
|
||||
expect(all[0]).toBe(1199 - TRIM_MESSAGES_TO + 1);
|
||||
expect(all[all.length - 1]).toBe(1201);
|
||||
expect(all[0]).toBe(1201 - TRIM_MESSAGES_TO + 1);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user