Skip to content

Commit

Permalink
fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerijo committed Jun 21, 2019
1 parent 9e1e647 commit 5f220a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/grammar-selector/spec/grammar-selector-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5f220a8

Please sign in to comment.