Move spec

This commit is contained in:
Ben Ogle 2014-09-25 10:17:54 -07:00
parent beb96cc025
commit 03a9a67ba8

View File

@ -442,6 +442,26 @@ describe "Config", ->
schema = null
describe '.setSchema(keyPath, schema)', ->
it 'creates a properly nested schema', ->
schema =
type: 'object'
properties:
anInt:
type: 'integer'
default: 12
atom.config.setSchema('foo.bar', schema)
expect(atom.config.getSchema('foo')).toEqual
type: 'object'
properties:
bar:
type: 'object'
properties:
anInt:
type: 'integer'
default: 12
it 'sets defaults specified by the schema', ->
schema =
type: 'object'
@ -480,26 +500,6 @@ describe "Config", ->
type: 'integer'
default: 12
it 'creates a properly nested schema', ->
schema =
type: 'object'
properties:
anInt:
type: 'integer'
default: 12
atom.config.setSchema('foo.bar', schema)
expect(atom.config.getSchema('foo')).toEqual
type: 'object'
properties:
bar:
type: 'object'
properties:
anInt:
type: 'integer'
default: 12
describe '.getSchema(keyPath)', ->
schema =
type: 'object'