mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03:00
Move spec for scoped property loading to atom-spec
This commit is contained in:
parent
3c561ef208
commit
368e10a9f5
@ -47,13 +47,3 @@ describe "AtomPackage", ->
|
||||
expect(packageMainModule.activationEventCallCount).toBe 2
|
||||
expect(eventHandler.callCount).toBe 2
|
||||
expect(packageMainModule.activate.callCount).toBe 1
|
||||
|
||||
describe "when the package has a scoped properties directory", ->
|
||||
it "loads the scoped properties", ->
|
||||
spyOn(syntax, 'addProperties')
|
||||
atom.activatePackage("package-with-scoped-properties")
|
||||
|
||||
expect(syntax.addProperties).toHaveBeenCalled()
|
||||
[selector, properties] = syntax.addProperties.argsForCall[0]
|
||||
expect(selector).toBe ".source.omg"
|
||||
expect(properties).toEqual {editor: increaseIndentPattern: '^a'}
|
||||
|
@ -124,6 +124,11 @@ describe "the `atom` global", ->
|
||||
expect(syntax.selectGrammar('a.alot').name).toBe 'Alot'
|
||||
expect(syntax.selectGrammar('a.alittle').name).toBe 'Alittle'
|
||||
|
||||
describe "scoped-property loading", ->
|
||||
it "loads the scoped properties", ->
|
||||
atom.activatePackage("package-with-scoped-properties")
|
||||
expect(syntax.getProperty ['.source.omg'], 'editor.increaseIndentPattern').toBe '^a'
|
||||
|
||||
describe "textmate packages", ->
|
||||
it "loads the package's grammars", ->
|
||||
expect(syntax.selectGrammar("file.rb").name).toBe "Null Grammar"
|
||||
|
Loading…
Reference in New Issue
Block a user