This commit is contained in:
Benjamin Gray 2019-06-21 19:44:24 +10:00
parent 9e1e647ec7
commit 5f220a8224
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ describe('GrammarSelector', () => {
// -1 for removing nullGrammar, +1 for adding "Auto Detect"
// Tree-sitter names the regex and JSDoc grammars
expect(grammarView.querySelectorAll('li').length).toBe(
atom.grammars.grammars.filter(g => g.name).length
atom.grammars
.getGrammars({ includeTreeSitter: true })
.filter(g => g.name).length
);
expect(grammarView.querySelectorAll('li')[0].textContent).toBe(
'Auto Detect'