chore(fs/abstract#list): remove default value

This commit is contained in:
Julien Fontanet 2018-12-05 14:30:55 +01:00
parent ff014df231
commit 043b381733
3 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@ export default class RemoteHandlerAbstract {
}
async list(
dir: string = '.',
dir: string,
{
filter,
prependDir = false,

View File

@ -70,7 +70,7 @@ describe('list()', () => {
list: () => new Promise(() => {}),
})
const promise = testHandler.list()
const promise = testHandler.list('.')
jest.advanceTimersByTime(TIMEOUT)
await expect(promise).rejects.toThrowError(TimeoutError)
})

View File

@ -227,7 +227,7 @@ export default class SmbHandler extends RemoteHandlerAbstract {
async _sync() {
// Check access (smb2 does not expose connect in public so far...)
await this.list()
await this.list('.')
return this._remote
}