feat: add schema validation and event table checks in scenario seeder

This commit is contained in:
2026-01-18 18:13:55 +00:00
parent 4647b67ba3
commit 9ac59893c4
3 changed files with 56 additions and 4 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ describe('formatSseFrame', () => {
data: 'ok',
});
expect(output).toBe(['event: ping', 'id: 1', 'retry: 1500', 'data: ok', ''].join('\n'));
expect(output).toBe(['event: ping', 'id: 1', 'retry: 1500', 'data: ok', ''].join('\n') + '\n');
});
it('splits multiline data', () => {
@@ -22,7 +22,7 @@ describe('formatSseFrame', () => {
data: 'first\nsecond',
});
expect(output).toBe(['event: notice', 'data: first', 'data: second', ''].join('\n'));
expect(output).toBe(['event: notice', 'data: first', 'data: second', ''].join('\n') + '\n');
});
});