chore(fs/abstract#list): remove default value
This commit is contained in:
parent
ff014df231
commit
043b381733
@ -184,7 +184,7 @@ export default class RemoteHandlerAbstract {
|
||||
}
|
||||
|
||||
async list(
|
||||
dir: string = '.',
|
||||
dir: string,
|
||||
{
|
||||
filter,
|
||||
prependDir = false,
|
||||
|
@ -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)
|
||||
})
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user