Skip to content

Commit

Permalink
fix: update test for code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed May 17, 2024
1 parent d7e951f commit 98218e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/hooks/diagnostics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Doctor diagnostics', () => {
sandbox.restore();
});

it('should warn when CLI does not support v2 crypto', async () => {
it('should fail when CLI does not support v2 crypto', async () => {
sandbox.stub(util, 'promisify').returns(() => ({ stdout: JSON.stringify([{ version: '6.5.0' }]) }));
process.env.SF_USE_GENERIC_UNIX_KEYCHAIN = 'false';

Expand All @@ -86,7 +86,7 @@ describe('Doctor diagnostics', () => {
expect(lifecycleEmitStub.args[0][0]).to.equal('Doctor:diagnostic');
expect(lifecycleEmitStub.args[0][1]).to.deep.equal({
testName: `[${pluginName}] CLI supports v2 crypto`,
status: 'warn',
status: 'fail',
});
});

Expand Down Expand Up @@ -135,7 +135,7 @@ describe('Doctor diagnostics', () => {
expect(lifecycleEmitStub.args[0][0]).to.equal('Doctor:diagnostic');
expect(lifecycleEmitStub.args[0][1]).to.deep.equal({
testName: `[${pluginName}] CLI supports v2 crypto`,
status: 'warn',
status: 'fail',
});
expect(addSuggestionStub.args[1][0]).to.equal(messages.getMessage('sfCryptoV2Unstable'));
expect(lifecycleEmitStub.args[1][0]).to.equal('Doctor:diagnostic');
Expand Down

0 comments on commit 98218e5

Please sign in to comment.