diff --git a/test/commands/package1/versionDisplay.nut.ts b/test/commands/package1/versionDisplay.nut.ts index c0cf64c4..d9d18ad6 100644 --- a/test/commands/package1/versionDisplay.nut.ts +++ b/test/commands/package1/versionDisplay.nut.ts @@ -43,14 +43,14 @@ describe('package1:version:display', () => { it('should validate packageversionid flag (too short)', () => { // fake package ID - too short const command = `package1:version:display -i 04t46000001Zfa -o ${session.hubOrg.username}`; - const output = execCmd(command, { ensureExitCode: 1 }).shellOutput.stderr; + const output = execCmd(command, { ensureExitCode: 'nonZero' }).shellOutput.stderr; expect(output).to.contain('The id must be 15 or 18 characters.'); }); it("should validate packageversionid flag (doesn't start with 04t)", () => { // fake package ID - not an 04t package const command = `package1:version:display -i 05t46000001ZfaAAAS -o ${session.hubOrg.username}`; - const output = execCmd(command, { ensureExitCode: 1 }).shellOutput.stderr; + const output = execCmd(command, { ensureExitCode: 'nonZero' }).shellOutput.stderr; expect(output).to.contain('The id must begin with 04t'); }); diff --git a/test/commands/package1/versionList.nut.ts b/test/commands/package1/versionList.nut.ts index 3fa1e883..ba5e6a3f 100644 --- a/test/commands/package1/versionList.nut.ts +++ b/test/commands/package1/versionList.nut.ts @@ -74,14 +74,14 @@ describe('package1:version:list', () => { it("should validate packageversionid flag (doesn't start with 033)", () => { // fake package ID - not an 033 package const command = `package1:version:list -i 03446000001ZfaAAAS -o ${session.hubOrg.username}`; - const output = execCmd(command, { ensureExitCode: 1 }).shellOutput.stderr; + const output = execCmd(command, { ensureExitCode: 'nonZero' }).shellOutput.stderr; expect(output).to.contain('The id must begin with 033.'); }); it('should validate packageversionid flag (too short)', () => { // fake package ID - not an 033 package const command = `package1:version:list -i 03346000001Zfa -o ${session.hubOrg.username}`; - const output = execCmd(command, { ensureExitCode: 1 }).shellOutput.stderr; + const output = execCmd(command, { ensureExitCode: 'nonZero' }).shellOutput.stderr; expect(output).to.contain('The id must be 18 characters.'); });