Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerijo committed Jun 21, 2019
1 parent 166d968 commit 9e1e647
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/grammar-registry-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,12 +884,16 @@ describe('GrammarRegistry', () => {

it('returns only Tree-sitter grammars by default', async () => {
const tmGrammars = atom.grammars.getGrammars();
const allGrammars = atom.grammars.getGrammars({ includeTreeSitter: true });
const allGrammars = atom.grammars.getGrammars({
includeTreeSitter: true
});
expect(allGrammars.length).toBeGreaterThan(tmGrammars.length);
});

it('executes the foreach callback on both Tree-sitter and TextMate grammars', async () => {
const numAllGrammars = atom.grammars.getGrammars({ includeTreeSitter: true }).length;
const numAllGrammars = atom.grammars.getGrammars({
includeTreeSitter: true
}).length;
let i = 0;
atom.grammars.forEachGrammar(() => i++);
expect(i).toBe(numAllGrammars);
Expand Down

0 comments on commit 9e1e647

Please sign in to comment.