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 create a dialog', async () => {
let dialog = FileDialog.getExistingDirectory({
iconRegistry,
manager
});
await dismissDialog();
const result = await dialog;
expect(result.button.accept).false;
expect(result.value).null;
});