Adjust test to await fewer changes due to tree-sitter async bugfix

This commit is contained in:
Max Brunsfeld
2018-08-13 10:15:34 -07:00
parent 49185920bf
commit a01d0a7983

View File

@@ -686,8 +686,7 @@ describe('TreeSitterLanguageMode', () => {
const languageMode = new TreeSitterLanguageMode({buffer, grammar: ejsGrammar, grammars: atom.grammars})
buffer.setLanguageMode(languageMode)
// 4 parses: EJS, HTML, template JS, script tag JS
await nextHighlightingUpdate(languageMode)
// Parse EJS, then HTML and template JS in parallel, then script tag JS
await nextHighlightingUpdate(languageMode)
await nextHighlightingUpdate(languageMode)
await nextHighlightingUpdate(languageMode)