Skip to content

Commit

Permalink
fix: cliConfiguration.test.ts checks for error instead of warning whe…
Browse files Browse the repository at this point in the history
…n CLI is not installed
  • Loading branch information
daphne-sfdc committed Nov 6, 2023
1 parent 7a93ee6 commit d6ddd1b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ describe('SFDX CLI Configuration utility', () => {
});

describe('showCLINotInstalledMessage', () => {
let mShowWarning: SinonStub;
let mShowError: SinonStub;

beforeEach(() => {
sandboxStub = createSandbox();
mShowWarning = sandboxStub
.stub(window, 'showWarningMessage')
mShowError = sandboxStub
.stub(window, 'showErrorMessage')
.returns(Promise.resolve(null));
});

Expand All @@ -82,7 +82,7 @@ describe('SFDX CLI Configuration utility', () => {

it('Should show cli install info message', async () => {
showCLINotInstalledMessage();
assert.calledOnce(mShowWarning);
assert.calledOnce(mShowError);
});
});

Expand Down

0 comments on commit d6ddd1b

Please sign in to comment.