@@ -33,13 +33,12 @@ describe('SfProject', () => {
3333 const json = await SfProjectJson . create ( ) ;
3434 json . set ( 'packageAliases' , { MyName : 'somePackage' } ) ;
3535 await json . write ( ) ;
36- expect ( ( $$ . getConfigStubContents ( 'SfProjectJson' ) . packageAliases as any ) [ 'MyName' ] ) . to . equal ( 'somePackage' ) ;
36+ expect ( json . getPackageAliases ( ) ! [ 'MyName' ] ) . to . equal ( 'somePackage' ) ;
3737 } ) ;
3838 it ( 'allows uppercase packaging aliases on read' , async ( ) => {
3939 $$ . setConfigStubContents ( 'SfProjectJson' , { contents : { packageAliases : { MyName : 'somePackage' } } } ) ;
4040 const json = await SfProjectJson . create ( ) ;
41- // @ts -expect-error possibly undefined
42- expect ( json . get ( 'packageAliases' ) [ 'MyName' ] ) . to . equal ( 'somePackage' ) ;
41+ expect ( json . getPackageAliases ( ) ! [ 'MyName' ] ) . to . equal ( 'somePackage' ) ;
4342 } ) ;
4443 } ) ;
4544 describe ( 'plugins' , ( ) => {
@@ -61,12 +60,12 @@ describe('SfProject', () => {
6160 const json = await SfProjectJson . create ( ) ;
6261 json . set ( 'packageBundleAliases' , { MyName : 'someBundle' } ) ;
6362 await json . write ( ) ;
64- expect ( ( $$ . getConfigStubContents ( 'SfProjectJson' ) . packageBundleAliases as any ) [ 'MyName' ] ) . to . equal ( 'someBundle' ) ;
63+ expect ( json . getPackageBundleAliases ( ) ! [ 'MyName' ] ) . to . equal ( 'someBundle' ) ;
6564 } ) ;
6665 it ( 'allows uppercase packaging aliases on read' , async ( ) => {
6766 $$ . setConfigStubContents ( 'SfProjectJson' , { contents : { packageBundleAliases : { MyName : 'someBundle' } } } ) ;
6867 const json = await SfProjectJson . create ( ) ;
69- expect ( json . get ( 'packageBundleAliases' ) ! [ 'MyName' ] ) . to . equal ( 'someBundle' ) ;
68+ expect ( json . getPackageBundleAliases ( ) ! [ 'MyName' ] ) . to . equal ( 'someBundle' ) ;
7069 } ) ;
7170 } ) ;
7271 } ) ;
0 commit comments