(dataRows: number)
| 23 | const args = { key: 'workspace/ws_1/file.csv', context: 'workspace' as const } |
| 24 | |
| 25 | function csvWithRows(dataRows: number): string { |
| 26 | const lines = ['h1,h2'] |
| 27 | for (let i = 0; i < dataRows; i++) lines.push(`${i},x`) |
| 28 | return lines.join('\n') |
| 29 | } |
| 30 | |
| 31 | describe('getCsvPreviewSlice', () => { |
| 32 | beforeEach(() => { |
no test coverage detected