mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Dont fail when there are thigns to set with array and object types
This commit is contained in:
@@ -644,6 +644,15 @@ describe "Config", ->
|
||||
nestedObject:
|
||||
nestedBool: true
|
||||
|
||||
it 'will set only the values that adhere to the schema', ->
|
||||
expect(atom.config.set 'foo.bar',
|
||||
anInt: 'nope'
|
||||
nestedObject:
|
||||
nestedBool: true
|
||||
).toBe true
|
||||
expect(atom.config.get('foo.bar.anInt')).toEqual 12
|
||||
expect(atom.config.get('foo.bar.nestedObject.nestedBool')).toEqual true
|
||||
|
||||
describe 'when the value has an "array" type', ->
|
||||
beforeEach ->
|
||||
schema =
|
||||
|
||||
Reference in New Issue
Block a user