@@ -128,8 +128,7 @@ describe('orgListUtil tests', () => {
128128 } ) ;
129129
130130 it ( 'readLocallyValidatedMetaConfigsGroupedByOrgType' , async ( ) => {
131- const flags = { } ;
132- const orgs = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , flags ) ;
131+ const orgs = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , false ) ;
133132 expect ( orgs . nonScratchOrgs . every ( ( nonScratchOrg ) => nonScratchOrg . connectedStatus !== undefined ) ) . to . be . true ;
134133 expect ( orgs . scratchOrgs . length ) . to . equal ( 2 ) ;
135134 expect ( orgs . scratchOrgs [ 0 ] ) . to . haveOwnProperty ( 'username' ) . to . equal ( '[email protected] ' ) ; @@ -143,8 +142,7 @@ describe('orgListUtil tests', () => {
143142 } ) ;
144143
145144 it ( 'skipconnectionstatus' , async ( ) => {
146- const flags = { skipconnectionstatus : true } ;
147- const orgs = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , flags ) ;
145+ const orgs = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , true ) ;
148146
149147 // we didn't check the status, so the hub is still not known to be a devhub
150148 expect ( orgs . nonScratchOrgs [ 0 ] . isDevHub ) . to . be . false ;
@@ -156,8 +154,7 @@ describe('orgListUtil tests', () => {
156154 } ) ;
157155
158156 it ( 'should omit sensitive information and catergorise active and non-active scracth orgs' , async ( ) => {
159- const flags = { } ;
160- const orgs = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , flags ) ;
157+ const orgs = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , false ) ;
161158
162159 expect ( orgs . scratchOrgs [ 0 ] ) . to . not . haveOwnProperty ( 'clientSecret' ) ;
163160 expect ( orgs . scratchOrgs [ 1 ] ) . to . not . haveOwnProperty ( 'clientSecret' ) ;
@@ -166,15 +163,13 @@ describe('orgListUtil tests', () => {
166163 } ) ;
167164
168165 it ( 'should execute queries to check for org information if --verbose is used' , async ( ) => {
169- const flags = { verbose : true } ;
170- await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , flags ) ;
166+ await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , true ) ;
171167 expect ( retrieveScratchOrgInfoFromDevHubStub . calledOnce ) . to . be . true ;
172168 expect ( spies . get ( 'reduceScratchOrgInfo' ) . calledOnce ) . to . be . true ;
173169 } ) ;
174170
175171 it ( 'execute queries should add information to grouped orgs' , async ( ) => {
176- const flags = { verbose : true } ;
177- const orgGroups = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , flags ) ;
172+ const orgGroups = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , true ) ;
178173 expect ( retrieveScratchOrgInfoFromDevHubStub . calledOnce ) . to . be . true ;
179174 expect ( spies . get ( 'reduceScratchOrgInfo' ) . calledOnce ) . to . be . true ;
180175 expect ( orgGroups . scratchOrgs [ 0 ] . signupUsername ) . to . equal ( orgAuthConfigFields . username ) ;
@@ -198,7 +193,7 @@ describe('orgListUtil tests', () => {
198193 stubMethod ( sandbox , Org . prototype , 'getUsername' ) . returns ( devHubConfigFields . username ) ;
199194 stubMethod ( sandbox , Org . prototype , 'refreshAuth' ) . rejects ( { message : 'bad auth' } ) ;
200195
201- const orgGroups = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , { } ) ;
196+ const orgGroups = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , false ) ;
202197 expect ( orgGroups . nonScratchOrgs ) . to . have . length ( 1 ) ;
203198 expect ( orgGroups . nonScratchOrgs [ 0 ] . connectedStatus ) . to . equal ( 'bad auth' ) ;
204199 expect ( checkNonScratchOrgIsDevHub . called ) . to . be . false ;
@@ -208,7 +203,7 @@ describe('orgListUtil tests', () => {
208203 determineConnectedStatusForNonScratchOrg . restore ( ) ;
209204 stubMethod ( sandbox , Org , 'create' ) . rejects ( { message : 'bad file' } ) ;
210205
211- const orgGroups = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , { } ) ;
206+ const orgGroups = await OrgListUtil . readLocallyValidatedMetaConfigsGroupedByOrgType ( fileNames , false ) ;
212207 expect ( orgGroups . nonScratchOrgs ) . to . have . length ( 1 ) ;
213208 expect ( orgGroups . nonScratchOrgs [ 0 ] . connectedStatus ) . to . equal ( 'bad file' ) ;
214209 expect ( checkNonScratchOrgIsDevHub . called ) . to . be . false ;
0 commit comments