@@ -185,7 +185,7 @@ describe("load", function () {
185185 } ]
186186 } ) ;
187187 expect ( settings ) . not . undefined ;
188- const data = settings . toHierarchicalData ( ) ;
188+ const data = settings . constructConfigurationObject ( ) ;
189189 expect ( data ) . not . undefined ;
190190 expect ( data . app . settings . fontColor ) . eq ( "red" ) ;
191191 expect ( data . app . settings . fontSize ) . eq ( "40" ) ;
@@ -199,7 +199,7 @@ describe("load", function () {
199199 } ]
200200 } ) ;
201201 expect ( settings ) . not . undefined ;
202- const data = settings . toHierarchicalData ( ) ;
202+ const data = settings . constructConfigurationObject ( ) ;
203203 expect ( data ) . not . undefined ;
204204 expect ( data . app2 . settings . fontColor ) . eq ( "blue" ) ;
205205 expect ( data . app2 . settings . fontSize ) . eq ( 20 ) ;
@@ -238,7 +238,7 @@ describe("load", function () {
238238 expect ( settings . get ( "app3.settings" ) ) . eq ( "placeholder" ) ;
239239 expect ( settings . get ( "app3.settings.fontColor" ) ) . eq ( "yellow" ) ;
240240 // use data property
241- const data = settings . toHierarchicalData ( { onError : "ignore" } ) ; // ignore error on hierarchical key conversion
241+ const data = settings . constructConfigurationObject ( { onError : "ignore" } ) ; // ignore error on hierarchical key conversion
242242 expect ( data . app3 . settings ) . not . eq ( "placeholder" ) ; // not as expected.
243243 expect ( data . app3 . settings . fontColor ) . eq ( "yellow" ) ;
244244 } ) ;
@@ -252,7 +252,7 @@ describe("load", function () {
252252 } ) ;
253253 expect ( settings ) . not . undefined ;
254254 expect ( ( ) => {
255- settings . toHierarchicalData ( ) ;
255+ settings . constructConfigurationObject ( ) ;
256256 } ) . to . throw ( "The key 'app3.settings' is not a valid path." ) ;
257257 } ) ;
258258} ) ;
0 commit comments