mirror of https://github.com/atom/atom.git
fix spec
This commit is contained in:
parent
9e1e647ec7
commit
5f220a8224
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue