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