chore(fs/test): test list prependDir option
This commit is contained in:
parent
10d4782ee2
commit
e47525b60b
@ -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()', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user