Skip to content

Commit 1f65603

Browse files
committed
fix: test
1 parent d5b4fa1 commit 1f65603

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/commands/package/packageVersion.nut.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,7 @@ 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
313-
?.result as PackageVersionListCommandResult;
312+
const output = execCmd<PackageVersionListCommandResult>(command, { ensureExitCode: 0 }).jsonOutput?.result;
314313
const keys = [
315314
'Package2Id',
316315
'Branch',
@@ -346,7 +345,7 @@ describe('package:version:*', () => {
346345
];
347346
expect(output).to.have.length.greaterThan(0);
348347
expect(output?.at(0)).to.have.keys(keys);
349-
const codeCoverage = output?.[0]?.CodeCoverage || '';
348+
const codeCoverage = output?.[0]?.CodeCoverage;
350349
expect(codeCoverage).to.equal('use --verbose for code coverage');
351350
});
352351

0 commit comments

Comments
 (0)