File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,7 @@ describe('package:version:*', () => {
309
309
} ) ;
310
310
it ( 'should list package versions in dev hub - json results' , ( ) => {
311
311
const command = `package:version:list -v ${ session . hubOrg . username } --json` ;
312
- const output = execCmd < PackageVersionListCommandResult > ( command , { ensureExitCode : 0 } ) . jsonOutput
313
- ?. result as PackageVersionListCommandResult ;
312
+ const output = execCmd < PackageVersionListCommandResult > ( command , { ensureExitCode : 0 } ) . jsonOutput ?. result ;
314
313
const keys = [
315
314
'Package2Id' ,
316
315
'Branch' ,
@@ -346,7 +345,7 @@ describe('package:version:*', () => {
346
345
] ;
347
346
expect ( output ) . to . have . length . greaterThan ( 0 ) ;
348
347
expect ( output ?. at ( 0 ) ) . to . have . keys ( keys ) ;
349
- const codeCoverage = output ?. [ 0 ] ?. CodeCoverage || '' ;
348
+ const codeCoverage = output ?. [ 0 ] ?. CodeCoverage ;
350
349
expect ( codeCoverage ) . to . equal ( 'use --verbose for code coverage' ) ;
351
350
} ) ;
352
351
You can’t perform that action at this time.
0 commit comments