(diff: DiffLine[])
| 50 | } |
| 51 | |
| 52 | function displayDiff(diff: DiffLine[]) { |
| 53 | return diff |
| 54 | .map(({ type, line }) => `${UNIFIED_DIFF_SYMBOLS[type]} ${line}`) |
| 55 | .join("\n"); |
| 56 | } |
| 57 | |
| 58 | async function expectDiff(file: string) { |
| 59 | const testFilePath = path.join(__dirname, "test-examples", file + ".diff"); |