@@ -211,7 +211,7 @@ suite('ConfigurationModel', () => {
211211 let result = base . merge ( add ) ;
212212
213213 assert . deepEqual ( result . contents , { 'a' : { 'b' : 2 } } ) ;
214- assert . deepEqual ( result . getSectionContents ( 'a' ) , { 'b' : 2 } ) ;
214+ assert . deepEqual ( result . getValue ( 'a' ) , { 'b' : 2 } ) ;
215215 assert . deepEqual ( result . keys , [ 'a.b' ] ) ;
216216 } ) ;
217217
@@ -239,16 +239,16 @@ suite('ConfigurationModel', () => {
239239
240240 test ( 'Test contents while getting an existing property' , ( ) => {
241241 let testObject = new ConfigurationModel ( { 'a' : 1 } ) ;
242- assert . deepEqual ( testObject . getSectionContents ( 'a' ) , 1 ) ;
242+ assert . deepEqual ( testObject . getValue ( 'a' ) , 1 ) ;
243243
244244 testObject = new ConfigurationModel ( { 'a' : { 'b' : 1 } } ) ;
245- assert . deepEqual ( testObject . getSectionContents ( 'a' ) , { 'b' : 1 } ) ;
245+ assert . deepEqual ( testObject . getValue ( 'a' ) , { 'b' : 1 } ) ;
246246 } ) ;
247247
248248 test ( 'Test contents are undefined for non existing properties' , ( ) => {
249249 const testObject = new ConfigurationModel ( { awesome : true } ) ;
250250
251- assert . deepEqual ( testObject . getSectionContents ( 'unknownproperty' ) , undefined ) ;
251+ assert . deepEqual ( testObject . getValue ( 'unknownproperty' ) , undefined ) ;
252252 } ) ;
253253
254254 test ( 'Test override gives all content merged with overrides' , ( ) => {
@@ -319,10 +319,10 @@ suite('CustomConfigurationModel', () => {
319319 test ( 'Test contents while getting an existing property' , ( ) => {
320320 let testObject = new ConfigurationModelParser ( 'test' ) ;
321321 testObject . parse ( JSON . stringify ( { 'a' : 1 } ) ) ;
322- assert . deepEqual ( testObject . configurationModel . getSectionContents ( 'a' ) , 1 ) ;
322+ assert . deepEqual ( testObject . configurationModel . getValue ( 'a' ) , 1 ) ;
323323
324324 testObject . parse ( JSON . stringify ( { 'a' : { 'b' : 1 } } ) ) ;
325- assert . deepEqual ( testObject . configurationModel . getSectionContents ( 'a' ) , { 'b' : 1 } ) ;
325+ assert . deepEqual ( testObject . configurationModel . getValue ( 'a' ) , { 'b' : 1 } ) ;
326326 } ) ;
327327
328328 test ( 'Test contents are undefined for non existing properties' , ( ) => {
@@ -331,13 +331,13 @@ suite('CustomConfigurationModel', () => {
331331 awesome : true
332332 } ) ) ;
333333
334- assert . deepEqual ( testObject . configurationModel . getSectionContents ( 'unknownproperty' ) , undefined ) ;
334+ assert . deepEqual ( testObject . configurationModel . getValue ( 'unknownproperty' ) , undefined ) ;
335335 } ) ;
336336
337337 test ( 'Test contents are undefined for undefined config' , ( ) => {
338338 const testObject = new ConfigurationModelParser ( 'test' ) ;
339339
340- assert . deepEqual ( testObject . configurationModel . getSectionContents ( 'unknownproperty' ) , undefined ) ;
340+ assert . deepEqual ( testObject . configurationModel . getValue ( 'unknownproperty' ) , undefined ) ;
341341 } ) ;
342342
343343 test ( 'Test configWithOverrides gives all content merged with overrides' , ( ) => {
@@ -385,7 +385,7 @@ suite('CustomConfigurationModel', () => {
385385 }
386386 }
387387 } ) ;
388- assert . equal ( true , new DefaultConfigurationModel ( ) . getSectionContents ( 'a' ) ) ;
388+ assert . equal ( true , new DefaultConfigurationModel ( ) . getValue ( 'a' ) ) ;
389389 } ) ;
390390
391391 test ( 'Test registering the language property' , ( ) => {
@@ -402,7 +402,7 @@ suite('CustomConfigurationModel', () => {
402402 }
403403 }
404404 } ) ;
405- assert . equal ( undefined , new DefaultConfigurationModel ( ) . getSectionContents ( '[a]' ) ) ;
405+ assert . equal ( undefined , new DefaultConfigurationModel ( ) . getValue ( '[a]' ) ) ;
406406 } ) ;
407407
408408} ) ;
0 commit comments