comparison mrjunejune/test/conversation_api_test.js @ 261:b401627fc49e

Add JRPG mock flows and interactive previews Add scripted mock SSE commands, custom event forwarding, animated chat turns, full-height message navigation, and a cyberpunk resume dossier. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <mrjunejune@users.noreply.github.com>
date Wed, 05 Aug 2026 20:38:32 -0700
parents 1f9877b637e9
children 04fee26ecce0
comparison
equal deleted inserted replaced
260:1f9877b637e9 261:b401627fc49e
147 response.headers.get('content-type') || '', 147 response.headers.get('content-type') || '',
148 /^text\/event-stream/, 148 /^text\/event-stream/,
149 ); 149 );
150 const stream = await response.text(); 150 const stream = await response.text();
151 assert.match(stream, /event: turn\.accepted/); 151 assert.match(stream, /event: turn\.accepted/);
152 assert.match(stream, /event: tool\.started/);
153 assert.match(stream, /"tool":\{"name":"mock-search"\}/);
152 assert.match(stream, /event: assistant\.delta/); 154 assert.match(stream, /event: assistant\.delta/);
153 assert.match(stream, /hello \\"traveler\\"\\\\path/); 155 assert.match(stream, /hello \\"traveler\\"\\\\path/);
154 assert.match(stream, /event: assistant\.completed/); 156 assert.match(stream, /event: assistant\.completed/);
155 assert.match(stream, /event: assistant\.usage/); 157 assert.match(stream, /event: assistant\.usage/);
156 assert.match(stream, /event: turn\.done/); 158 assert.match(stream, /event: turn\.done/);