Add atom prefix to syntax global

This commit is contained in:
Kevin Sawicki 2013-11-19 16:37:50 -08:00
parent fbbf3d177a
commit 233d819e04

View File

@ -262,12 +262,13 @@ describe "the `atom` global", ->
describe "when the package has no grammars but does have preferences", ->
it "loads the package's preferences as scoped properties", ->
jasmine.unspy(window, 'setTimeout')
spyOn(syntax, 'addProperties').andCallThrough()
spyOn(atom.syntax, 'addProperties').andCallThrough()
atom.activatePackage('package-with-preferences-tmbundle')
waitsFor ->
atom.syntax.addProperties.callCount > 0
runs ->
expect(atom.syntax.getProperty(['.source.pref'], 'editor.increaseIndentPattern')).toBe '^abc$'