fix: preserve original event type, use source field for wrapper

This commit is contained in:
Jesse Vincent
2026-01-17 13:11:53 -08:00
parent 15d0f2a8f6
commit fccb5b4b8f
3 changed files with 4 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ async function runTests() {
ws.send(JSON.stringify({ type: 'click', text: 'Test Button' }));
await sleep(300);
assert(stdout.includes('user-event'), 'Should relay user events');
assert(stdout.includes('"source":"user-event"'), 'Should relay user events with source field');
assert(stdout.includes('Test Button'), 'Should include event data');
ws.close();
console.log(' PASS');