diff --git a/src/commands/package/create.ts b/src/commands/package/create.ts index dadc1372..2b76cb8a 100644 --- a/src/commands/package/create.ts +++ b/src/commands/package/create.ts @@ -93,7 +93,6 @@ export class PackageCreateCommand extends SfCommand { } private display(result: PackageCreate): void { - this.styledHeader('Ids'); - this.table({ data: [{ name: 'Package Id', value: result.Id }] }); + this.table({ data: [{ name: 'Package Id', value: result.Id }], title: 'Ids' }); } } diff --git a/src/commands/package/list.ts b/src/commands/package/list.ts index 94b0e0b5..29e25ae3 100644 --- a/src/commands/package/list.ts +++ b/src/commands/package/list.ts @@ -60,8 +60,6 @@ export class PackageListCommand extends SfCommand { } private displayResults(results: Package2Result[], verbose = false, apiVersion: string): void { - this.styledHeader(chalk.blue(`Packages [${results.length}]`)); - const data = results.map((r) => ({ 'Namespace Prefix': r.NamespacePrefix, Name: r.Name, @@ -80,7 +78,7 @@ export class PackageListCommand extends SfCommand { } : {}), })); - this.table({ data }); + this.table({ data, title: chalk.blue(`Packages [${results.length}]`) }); } } diff --git a/src/commands/package/version/create/list.ts b/src/commands/package/version/create/list.ts index 12dd93cf..8f5ba4d7 100644 --- a/src/commands/package/version/create/list.ts +++ b/src/commands/package/version/create/list.ts @@ -68,8 +68,6 @@ export class PackageVersionCreateListCommand extends SfCommand 0) { this.log(''); diff --git a/src/commands/package/version/list.ts b/src/commands/package/version/list.ts index d92dff42..cca99d3d 100644 --- a/src/commands/package/version/list.ts +++ b/src/commands/package/version/list.ts @@ -214,8 +214,8 @@ export class PackageVersionListCommand extends SfCommand 0) { this.table({ data: displayCoverageRecords }); } diff --git a/test/commands/package/packageVersionCreateReport.test.ts b/test/commands/package/packageVersionCreateReport.test.ts index 277160a0..329f2942 100644 --- a/test/commands/package/packageVersionCreateReport.test.ts +++ b/test/commands/package/packageVersionCreateReport.test.ts @@ -85,13 +85,11 @@ describe('package:version:create:report - tests', () => { const testOrg = new MockTestOrgData(); let createStatusStub = $$.SANDBOX.stub(PackageVersion, 'getCreateStatus'); let tableStub: sinon.SinonStub; - let styledHeaderStub: sinon.SinonStub; let warnStub: sinon.SinonStub; const config = new Config({ root: import.meta.url }); beforeEach(async () => { warnStub = $$.SANDBOX.stub(SfCommand.prototype, 'warn'); - styledHeaderStub = $$.SANDBOX.stub(SfCommand.prototype, 'styledHeader'); tableStub = $$.SANDBOX.stub(SfCommand.prototype, 'table'); }); @@ -129,7 +127,6 @@ describe('package:version:create:report - tests', () => { }, ]); expect(tableStub.callCount).to.equal(1); - expect(styledHeaderStub.callCount).to.equal(1); }); it('should report on a new package version with async validation', async () => { @@ -157,7 +154,6 @@ describe('package:version:create:report - tests', () => { }, ]); expect(tableStub.callCount).to.equal(1); - expect(styledHeaderStub.callCount).to.equal(1); }); it('should report multiple errors', async () => { diff --git a/test/commands/package/versionReport.test.ts b/test/commands/package/versionReport.test.ts index a8a66be8..cd3d3725 100644 --- a/test/commands/package/versionReport.test.ts +++ b/test/commands/package/versionReport.test.ts @@ -148,8 +148,6 @@ describe('package:version:report - tests', () => { expect(result).to.deep.equal(pkgVersionReportResultModified); expect(uxLogStub.calledOnce).to.be.false; expect(uxTableStub.calledOnce).to.be.true; - expect(uxStyledHeaderStub.calledOnce).to.be.true; - expect(uxStyledHeaderStub.args[0][0]).to.include('Package Version'); }); it('should produce package version report - json result', async () => { const reportResult = Object.assign({}, pkgVersionReportResult);