1
0
Fork 0

test debug

pull/1344/head
Cory Miller 2023-02-21 17:19:17 +00:00
parent 4272cd6ca1
commit fe0fbdccde
1 changed files with 2 additions and 2 deletions

View File

@ -328,12 +328,12 @@ describe('rmRF', () => {
const filePath = path.join(testPath, 'file.txt')
await fs.appendFile(filePath, 'some data')
await assertExists(filePath)
console.log('before remove while open')
const fd = await fs.open(filePath, 'r')
await io.rmRF(testPath)
await assertNotExists(testPath)
console.log('before remove after closed')
await fd.close()
await io.rmRF(testPath)
await assertNotExists(testPath)