From 4d167ac4c762a6562bbfe95a90039d3435c5803e Mon Sep 17 00:00:00 2001 From: Steve Hetzel Date: Tue, 18 Jun 2024 14:52:49 -0500 Subject: [PATCH] fix: update test expectations for new error codes --- test/commands/sfdx/alias/set.nut.ts | 4 +--- test/commands/sfdx/config/unset.nut.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/commands/sfdx/alias/set.nut.ts b/test/commands/sfdx/alias/set.nut.ts index 6d8ae0ec..87f5e06d 100644 --- a/test/commands/sfdx/alias/set.nut.ts +++ b/test/commands/sfdx/alias/set.nut.ts @@ -111,9 +111,7 @@ describe('alias:set NUTs', async () => { it('alias:set without varargs stdout', () => { const res: string = execCmd('alias:set ').shellOutput.stderr; - expect(res).to.include( - 'Error (1): You must provide one or more aliases to set. Use the --help flag to see examples.' - ); + expect(res).to.include('You must provide one or more aliases to set. Use the --help flag to see examples.'); }); }); }); diff --git a/test/commands/sfdx/config/unset.nut.ts b/test/commands/sfdx/config/unset.nut.ts index 29c591f7..ad3eaa4a 100644 --- a/test/commands/sfdx/config/unset.nut.ts +++ b/test/commands/sfdx/config/unset.nut.ts @@ -24,7 +24,7 @@ describe('config:unset NUTs', async () => { 'You must provide one or more configuration variables to unset. Run "sf config list" to see the configuration variables you\'ve previously set.', name: 'NoConfigKeysFoundError', status: 1, - code: 1, + code: 'NoConfigKeysFoundError', exitCode: 1, warnings: [], });