mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Get PackageManager
specs passing
This commit is contained in:
parent
98c80eb245
commit
3c4493b895
@ -2,7 +2,7 @@ name: 'Some Language'
|
||||
|
||||
scopeName: 'some-language'
|
||||
|
||||
type: 'tree-sitter'
|
||||
type: 'modern-tree-sitter'
|
||||
|
||||
parser: './fake-parser'
|
||||
|
||||
@ -12,3 +12,7 @@ fileTypes: [
|
||||
|
||||
scopes:
|
||||
'class > identifier': 'entity.name.type.class'
|
||||
|
||||
treeSitter:
|
||||
grammar: './tree-sitter-empty.wasm'
|
||||
highlightsQuery: './tree-sitter-empty.scm'
|
||||
|
1
spec/fixtures/packages/package-with-tree-sitter-grammar/grammars/tree-sitter-empty.scm
vendored
Normal file
1
spec/fixtures/packages/package-with-tree-sitter-grammar/grammars/tree-sitter-empty.scm
vendored
Normal file
@ -0,0 +1 @@
|
||||
; (empty)
|
BIN
spec/fixtures/packages/package-with-tree-sitter-grammar/grammars/tree-sitter-empty.wasm
vendored
Executable file
BIN
spec/fixtures/packages/package-with-tree-sitter-grammar/grammars/tree-sitter-empty.wasm
vendored
Executable file
Binary file not shown.
@ -1440,7 +1440,8 @@ describe('PackageManager', () => {
|
||||
await atom.packages.activatePackage('package-with-tree-sitter-grammar');
|
||||
const grammar = atom.grammars.selectGrammar('test.somelang');
|
||||
expect(grammar.name).toBe('Some Language');
|
||||
expect(grammar.languageModule.isFakeTreeSitterParser).toBe(true);
|
||||
await grammar.getQuery('highlightsQuery');
|
||||
expect(grammar.highlightsQuery.includes('(empty)')).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user