(pathA: string, pathB: string)
| 296 | } |
| 297 | |
| 298 | async diff(pathA: string, pathB: string): Promise<string> { |
| 299 | const [before, after] = await Promise.all([ |
| 300 | this.readFile(pathA), |
| 301 | this.readFile(pathB) |
| 302 | ]); |
| 303 | return diffContent(before, after, pathA, pathB); |
| 304 | } |
| 305 | |
| 306 | async diffContent(path: string, newContent: string): Promise<string> { |
| 307 | return diffContent(await this.readFile(path), newContent, path, path); |
nothing calls this directly
no test coverage detected