chore(fs/test): test list prependDir option

This commit is contained in:
Julien Fontanet 2018-12-06 18:53:09 +01:00
parent 10d4782ee2
commit e47525b60b

View File

@ -142,6 +142,13 @@ handlers.forEach(url => {
'/dir/file',
])
})
it('can prepend the directory to entries', async () => {
await handler.outputFile('dir/file', '')
expect(await handler.list('dir', { prependDir: true })).toEqual([
'/dir/file',
])
})
})
describe('#mkdir()', () => {