(index: number)
| 2 | import { mergeTerminalChunks } from '../useTerminalStream'; |
| 3 | |
| 4 | const buildChunk = (index: number) => ({ |
| 5 | nodeRef: 'node-1', |
| 6 | stream: 'pty', |
| 7 | chunkIndex: index, |
| 8 | payload: Buffer.from(`chunk-${index}`).toString('base64'), |
| 9 | recordedAt: new Date().toISOString(), |
| 10 | }); |
| 11 | |
| 12 | describe('mergeTerminalChunks', () => { |
| 13 | it('appends new chunks in order', () => { |
no test coverage detected