()
| 263 | // ============================================================================= |
| 264 | |
| 265 | async function testEmptyFile() { |
| 266 | const filePath = path.join(tmpDir, 'pullsync-empty.txt'); |
| 267 | fs.writeFileSync(filePath, ''); |
| 268 | |
| 269 | const fh = await open(filePath, 'r'); |
| 270 | try { |
| 271 | const data = textSync(fh.pullSync()); |
| 272 | assert.strictEqual(data, ''); |
| 273 | } finally { |
| 274 | await fh.close(); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | // ============================================================================= |
| 279 | // pipeToSync: file-to-file sync pipeline |
no test coverage detected