Fix failing spec

This commit is contained in:
Andrew Dupont 2024-01-29 21:54:18 -08:00
parent 2dbd99582e
commit 14e3562330

View File

@ -1696,6 +1696,10 @@ describe('WASMTreeSitterLanguageMode', () => {
describe('.suggestedIndentForBufferRows', () => {
it('works correctly when straddling an injection boundary', async () => {
atom.config.set('language-javascript.indentation.indentBraces', true);
atom.config.set('language-javascript.indentation.indentBrackets', true);
atom.config.set('language-javascript.indentation.indentParentheses', true);
const jsGrammar = new WASMTreeSitterGrammar(atom.grammars, jsGrammarPath, jsConfig);
jsGrammar.addInjectionPoint(HTML_TEMPLATE_LITERAL_INJECTION_POINT);