diff --git a/test/commands/package/packageCreateAndDelete.nut.ts b/test/commands/package/packageCreateAndDelete.nut.ts index 6ff7e66e..2cb69ef0 100644 --- a/test/commands/package/packageCreateAndDelete.nut.ts +++ b/test/commands/package/packageCreateAndDelete.nut.ts @@ -34,7 +34,7 @@ describe('package create/update/delete', () => { const command = `package:create -n ${pkgName} -v ${session.hubOrg.username} -t Unlocked -r ./force-app`; const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout; expect(output).to.contain('=== Ids'); - expect(output).to.match(/Package Id\s+?0Ho/); + expect(output).to.match(/Package Id\s+?|0Ho/); }); it('should update a package - human readable results', () => { const command = `package:update --package ${pkgName} --description "My new description" -v ${session.hubOrg.username}`; diff --git a/test/commands/package/packageInstalledList.nut.ts b/test/commands/package/packageInstalledList.nut.ts index 6bb18243..f6cab208 100644 --- a/test/commands/package/packageInstalledList.nut.ts +++ b/test/commands/package/packageInstalledList.nut.ts @@ -26,7 +26,7 @@ describe('package:installed:list', () => { const command = `package:installed:list -o ${session.hubOrg.username}`; const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout; expect(output).to.match( - /ID\s+?Package ID\s+?Package Name\s+?Namespace\s+?Package Version ID\s+?Version Name\s+?Version/ + /ID\s+?|Package ID\s+?|Package Name\s+?|Namespace\s+?|Package Version ID\s+?|Version Name\s+?|Version/ ); }); diff --git a/test/commands/package/packageList.nut.ts b/test/commands/package/packageList.nut.ts index 68235ebb..e29beee4 100644 --- a/test/commands/package/packageList.nut.ts +++ b/test/commands/package/packageList.nut.ts @@ -59,7 +59,7 @@ describe('package list', () => { const command = `package:list -v ${session.hubOrg.username}`; const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout; expect(output).to.contain('=== Packages'); - expect(output).to.match(/Namespace Prefix\s+?Name\s+?Id\s+?Alias\s+?Description\s+?Type/); + expect(output).to.match(/Namespace Prefix\s+?|Name\s+?|Id\s+?|Alias\s+?|Description\s+?|Type/); }); it('should list packages in dev hub - verbose human readable results', () => { const command = `package:list -v ${session.hubOrg.username} --verbose`; diff --git a/test/commands/package1/versionDisplay.nut.ts b/test/commands/package1/versionDisplay.nut.ts index d9d18ad6..092553e9 100644 --- a/test/commands/package1/versionDisplay.nut.ts +++ b/test/commands/package1/versionDisplay.nut.ts @@ -29,7 +29,7 @@ describe('package1:version:display', () => { const command = `package1:version:display -i ${packageVersionId} -o ${session.hubOrg.username}`; const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout; expect(output).to.match( - /MetadataPackageVersionId\s+?MetadataPackageId\s+?Name\s+?Version\s+?ReleaseState\s+?BuildNumber/ + /MetadataPackageVersionId\s+?|MetadataPackageId\s+?|Name\s+?|Version\s+?|ReleaseState\s+?|BuildNumber/ ); }); diff --git a/test/commands/package1/versionList.nut.ts b/test/commands/package1/versionList.nut.ts index ba5e6a3f..7206ff5d 100644 --- a/test/commands/package1/versionList.nut.ts +++ b/test/commands/package1/versionList.nut.ts @@ -29,7 +29,7 @@ describe('package1:version:list', () => { const command = `package1:version:list -o ${session.hubOrg.username}`; const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout; expect(output).to.match( - /MetadataPackageVersionId\s+?MetadataPackageId\s+?Name\s+?Version\s+?ReleaseState\s+?BuildNumber/ + /MetadataPackageVersionId\s+?|MetadataPackageId\s+?|Name\s+?|Version\s+?|ReleaseState\s+?|BuildNumber/ ); }); @@ -60,7 +60,7 @@ describe('package1:version:list', () => { const command = `package1:version:list -i ${packageId} -o ${session.hubOrg.username}`; const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout; expect(output).to.match( - /MetadataPackageVersionId\s+?MetadataPackageId\s+?Name\s+?Version\s+?ReleaseState\s+?BuildNumber/ + /MetadataPackageVersionId\s+?|MetadataPackageId\s+?|Name\s+?|Version\s+?|ReleaseState\s+?|BuildNumber/ ); });