Skip to content

Commit 34c1f59

Browse files
committed
test: add it
1 parent cd30c81 commit 34c1f59

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/commands/package/packageVersion.nut.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ describe('package:version:*', () => {
309309
});
310310
it('should list package versions in dev hub - json results', () => {
311311
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;
313314
const keys = [
314315
'Package2Id',
315316
'Branch',
@@ -345,7 +346,11 @@ describe('package:version:*', () => {
345346
];
346347
expect(output).to.have.length.greaterThan(0);
347348
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');
348352
});
353+
349354
it('should list package versions in dev hub - verbose json results', () => {
350355
const command = `package:version:list --verbose -v ${session.hubOrg.username} --json`;
351356
const output = execCmd<PackageVersionListCommandResult>(command, { ensureExitCode: 0 }).jsonOutput

0 commit comments

Comments
 (0)