Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Sep 14, 2024
1 parent 986c697 commit 74479ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions spec/text-editor-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8326,11 +8326,11 @@ describe('TextEditor', () => {
'program',
'variable_declaration',
'variable_declarator',
'function',
'function_expression',
'statement_block',
'variable_declaration',
'variable_declarator',
'function',
'function_expression',
'statement_block',
'while_statement',
'parenthesized_expression',
Expand Down
16 changes: 8 additions & 8 deletions spec/wasm-tree-sitter-language-mode-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ describe('WASMTreeSitterLanguageMode', () => {
htmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, tempHtmlConfig);

await htmlGrammar.setQueryForTest('highlightsQuery', `
(fragment) @html
(document) @html
(tag_name) @tag
(attribute_name) @attr
`);
Expand Down Expand Up @@ -1351,7 +1351,7 @@ describe('WASMTreeSitterLanguageMode', () => {
let customHtmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, customHtmlConfig);

await htmlGrammar.setQueryForTest('highlightsQuery', `
(fragment) @html
(document) @html
(tag_name) @tag
(attribute_name) @attr
`);
Expand Down Expand Up @@ -1399,7 +1399,7 @@ describe('WASMTreeSitterLanguageMode', () => {
let customHtmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, customHtmlConfig);

await htmlGrammar.setQueryForTest('highlightsQuery', `
(fragment) @html
(document) @html
(tag_name) @tag
(attribute_name) @attr
`);
Expand Down Expand Up @@ -1450,7 +1450,7 @@ describe('WASMTreeSitterLanguageMode', () => {
let customHtmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, customHtmlConfig);

await htmlGrammar.setQueryForTest('highlightsQuery', `
(fragment) @html
(document) @html
(tag_name) @tag
(attribute_name) @attr
`);
Expand Down Expand Up @@ -1503,7 +1503,7 @@ describe('WASMTreeSitterLanguageMode', () => {
let customHtmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, customHtmlConfig);

await htmlGrammar.setQueryForTest('highlightsQuery', `
(fragment) @html
(document) @html
(tag_name) @tag
(attribute_name) @attr
`);
Expand Down Expand Up @@ -3085,15 +3085,15 @@ describe('WASMTreeSitterLanguageMode', () => {
.getScopesArray()
).toEqual([
'text.html.basic',
'fragment',
'document',
'element',
'script_element',
'raw_text',
'program',
'expression_statement',
'call_expression',
'template_string',
'fragment',
'document',
'element',
'template_substitution',
'member_expression',
Expand Down Expand Up @@ -3833,7 +3833,7 @@ describe('WASMTreeSitterLanguageMode', () => {
htmlConfig
);
await htmlGrammar.setQueryForTest('highlightsQuery', `
(fragment) @html
(document) @html
(tag_name) @tag
(attribute_name) @attr
`);
Expand Down

0 comments on commit 74479ba

Please sign in to comment.