| 8 | */ |
| 9 | |
| 10 | const reader = (path: string, text: string, kind: 'file' | 'selection' = 'file', lines?: [number, number], partial?: string): BrowserChatReaderContext => ({ |
| 11 | project: 'demo', path, status: 'ready', |
| 12 | source: { id: 'r', text, path, project: 'demo', startLine: lines?.[0] ?? 1, startColumn: 1, endLine: lines?.[1] ?? text.split('\n').length, endColumn: 1, sourceVersion: 'sha256:1', kind, |
| 13 | ...partial ? { partial } : {} }, |
| 14 | }); |
| 15 | |
| 16 | describe('facts read from a configuration or text file (K12)', () => { |
| 17 | it('tells data and text files from program code by their name', () => { |