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

This commit is contained in:
Hide_D committed 2026-01-18 18:13:55 +00:00
1 parent 4647b67ba3
commit 9ac59893c4
3 files changed
+56 -4

No files matched your search

+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');
});
});