How to use the @jupyterlab/filebrowser.FileDialog.getExistingDirectory function in @jupyterlab/filebrowser

To help you get started, we’ve selected a few @jupyterlab/filebrowser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / jupyterlab / tests / test-filebrowser / src / openfiledialog.spec.ts View on Github external
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;
    });