Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should return current path if nothing is selected', async () => {
let dialog = FileDialog.getOpenFiles({
iconRegistry,
manager
});
await acceptDialog();
const result = await dialog;
const items = result.value!;
expect(items.length).equal(1);
expect(items[0].type).equal('directory');
expect(items[0].path).equal('');
});
});