mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-06 23:49:41 +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:
@@ -224,7 +224,7 @@ describe('Edge Cases and Error Handling', () => {
|
||||
expect(data.error).toBe('Respawn controller not found');
|
||||
});
|
||||
|
||||
it('should handle updating config on non-existent respawn controller', async () => {
|
||||
it('should handle updating config on non-existent session', async () => {
|
||||
const response = await fetch(`${baseUrl}/api/sessions/non-existent/respawn/config`, {
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
@@ -232,7 +232,7 @@ describe('Edge Cases and Error Handling', () => {
|
||||
});
|
||||
const data = await response.json();
|
||||
|
||||
expect(data.error).toBe('Respawn controller not found');
|
||||
expect(data.error).toBe('Session not found');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user