Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
mradulsf committed Jul 11, 2024
1 parent d5b4fa1 commit 1f65603
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/commands/package/packageVersion.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ describe('package:version:*', () => {
});
it('should list package versions in dev hub - json results', () => {
const command = `package:version:list -v ${session.hubOrg.username} --json`;
const output = execCmd<PackageVersionListCommandResult>(command, { ensureExitCode: 0 }).jsonOutput
?.result as PackageVersionListCommandResult;
const output = execCmd<PackageVersionListCommandResult>(command, { ensureExitCode: 0 }).jsonOutput?.result;
const keys = [
'Package2Id',
'Branch',
Expand Down Expand Up @@ -346,7 +345,7 @@ describe('package:version:*', () => {
];
expect(output).to.have.length.greaterThan(0);
expect(output?.at(0)).to.have.keys(keys);
const codeCoverage = output?.[0]?.CodeCoverage || '';
const codeCoverage = output?.[0]?.CodeCoverage;
expect(codeCoverage).to.equal('use --verbose for code coverage');
});

Expand Down

0 comments on commit 1f65603

Please sign in to comment.