How to use the atom-select-list.getScheduler function in atom-select-list

To help you get started, we’ve selected a few atom-select-list 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 atom / atom / packages / grammar-selector / spec / grammar-selector-spec.js View on Github external
it('displays Auto Detect as the selected grammar', async () => {
      editor.setGrammar(atom.grammars.nullGrammar);
      atom.commands.dispatch(editor.getElement(), 'grammar-selector:show');
      await SelectListView.getScheduler().getNextUpdatePromise();

      const grammarView = atom.workspace.getModalPanels()[0].getItem().element;
      expect(grammarView.querySelector('li.active').textContent).toBe(
        'Auto Detect'
      );
    }));

atom-select-list

A general-purpose select list for use in Atom packages

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages