Merge pull request #902 from savetheclocktower/tree-sitter-hotfix

Fix failing spec
This commit is contained in:
Andrew Dupont 2024-01-29 23:35:44 -08:00 committed by GitHub
commit ca25930510
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1695,7 +1695,12 @@ describe('WASMTreeSitterLanguageMode', () => {
});
describe('.suggestedIndentForBufferRows', () => {
beforeEach(async () => {
await atom.packages.activatePackage('language-javascript');
})
it('works correctly when straddling an injection boundary', async () => {
const jsGrammar = new WASMTreeSitterGrammar(atom.grammars, jsGrammarPath, jsConfig);
jsGrammar.addInjectionPoint(HTML_TEMPLATE_LITERAL_INJECTION_POINT);