()
| 65 | const { readdir, lstat } = require('fs/promises'); |
| 66 | |
| 67 | async function testPromises() { |
| 68 | const entries = await readdir(MOUNT); |
| 69 | assert.ok(entries.includes('file.txt')); |
| 70 | |
| 71 | const stats = await lstat(FILE); |
| 72 | assert.strictEqual(stats.isFile(), true); |
| 73 | } |
| 74 | |
| 75 | testPromises().then(common.mustCall(() => { |
| 76 | myVfs.unmount(); |