(
chunkContent: string,
chunkStartLine: number,
chunkEndLine: number,
)
| 42 | ).toString(); |
| 43 | |
| 44 | const createChunk = ( |
| 45 | chunkContent: string, |
| 46 | chunkStartLine: number, |
| 47 | chunkEndLine: number, |
| 48 | ) => { |
| 49 | chunks.push({ |
| 50 | content: chunkContent.trim(), |
| 51 | startLine: chunkStartLine, |
| 52 | endLine: chunkEndLine, |
| 53 | otherMetadata: { |
| 54 | title: cleanHeader(article.title), |
| 55 | }, |
| 56 | index: index++, |
| 57 | filepath: fullUrl, |
| 58 | digest: fullUrl, |
| 59 | }); |
| 60 | }; |
| 61 | |
| 62 | for (let i = 0; i < lines.length; i++) { |
| 63 | const line = lines[i]; |
no test coverage detected