@@ -12,8 +12,6 @@ import { TestSession } from '@salesforce/cli-plugins-testkit';
1212import { execCmd } from '@salesforce/cli-plugins-testkit' ;
1313import { asDictionary , AnyJson , Dictionary , getString , isArray } from '@salesforce/ts-types' ;
1414
15- /* eslint-disable @typescript-eslint/no-unsafe-call */
16-
1715const verifyHumanResults = (
1816 lines : string [ ] ,
1917 defaultUsername : string ,
@@ -112,11 +110,13 @@ describe('Org Command NUT', () => {
112110 ) ;
113111 } ) ;
114112 it ( 'should list orgs in a human readable form' , ( ) => {
115- const lines = execCmd ( 'force:org:list' , { ensureExitCode : 0 } ) . shellOutput . stdout . split ( os . EOL ) ;
113+ const lines = ( execCmd ( 'force:org:list' , { ensureExitCode : 0 } ) . shellOutput . stdout as string ) . split ( os . EOL ) ;
116114 verifyHumanResults ( lines , defaultUsername , aliasedUsername ) ;
117115 } ) ;
118116 it ( 'should list additional information with --verbose' , ( ) => {
119- const lines = execCmd ( 'force:org:list --verbose' , { ensureExitCode : 0 } ) . shellOutput . stdout . split ( os . EOL ) ;
117+ const lines = ( execCmd ( 'force:org:list --verbose' , { ensureExitCode : 0 } ) . shellOutput . stdout as string ) . split (
118+ os . EOL
119+ ) ;
120120 verifyHumanResults ( lines , defaultUsername , aliasedUsername , true ) ;
121121 } ) ;
122122 } ) ;
@@ -139,15 +139,15 @@ describe('Org Command NUT', () => {
139139 } ) ;
140140 } ) ;
141141 it ( 'should display human readable org information for default username' , ( ) => {
142- const lines = execCmd < Dictionary > ( 'force:org:display' , { ensureExitCode : 0 } ) . shellOutput . stdout . split ( os . EOL ) ;
142+ const lines = ( execCmd < Dictionary > ( 'force:org:display' , { ensureExitCode : 0 } ) . shellOutput
143+ . stdout as string ) . split ( os . EOL ) ;
143144 expect ( lines . length ) . to . have . greaterThan ( 0 ) ;
144145 const usernameLine = lines . find ( ( line ) => line . includes ( 'Username' ) ) ;
145146 expect ( usernameLine ) . to . include ( defaultUsername ) ;
146147 } ) ;
147148 it ( 'should display human readable scratch org information for alias' , ( ) => {
148- const lines = execCmd ( `force:org:display -u ${ aliasedUsername } ` , { ensureExitCode : 0 } ) . shellOutput . stdout . split (
149- os . EOL
150- ) ;
149+ const lines = ( execCmd ( `force:org:display -u ${ aliasedUsername } ` , { ensureExitCode : 0 } ) . shellOutput
150+ . stdout as string ) . split ( os . EOL ) ;
151151 expect ( lines . length ) . to . have . greaterThan ( 0 ) ;
152152 const usernameLine = lines . find ( ( line ) => line . includes ( 'Username' ) ) ;
153153 expect ( usernameLine ) . to . include ( aliasedUsername ) ;
0 commit comments