Config::getSchema - use null to represent inaccessible key path

This commit is contained in:
Max Brunsfeld
2015-08-12 16:52:25 -07:00
parent 506dfc863c
commit 5f620fb739
2 changed files with 13 additions and 10 deletions

View File

@@ -1142,8 +1142,8 @@ describe "Config", ->
type: 'integer'
default: 12
expect(atom.config.getSchema('foo.baz')).toBe(null)
expect(atom.config.getSchema('foo.bar.anInt.baz')).toBe(false)
expect(atom.config.getSchema('foo.baz')).toEqual {type: 'any'}
expect(atom.config.getSchema('foo.bar.anInt.baz')).toBe(null)
it "respects the schema for scoped settings", ->
schema =