Skip to content

Commit

Permalink
fix: support sf cli
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Oct 6, 2022
1 parent 975a509 commit e8f0e1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ export class Diagnostics {
* Checks to see if the running version of the CLI is the latest.
*/
public async outdatedCliVersionCheck(): Promise<void> {
const cliVersionArray = this.diagnosis.versionDetail.cliVersion.split('/');
const cliName = cliVersionArray[0];
const cliVersion = cliVersionArray[1];
const cliName = this.config.name;
const cliVersion = this.config.version;

return new Promise<void>((resolve) => {
const testName = 'using latest or latest-rc CLI version';
Expand Down
2 changes: 2 additions & 0 deletions test/diagnostics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ describe('Diagnostics', () => {
lifecycleEmitSpy = spyMethod(sandbox, lifecycle, 'emit');
oclifConfigStub = fromStub(
stubInterface<Config>(sandbox, {
name: 'sfdx-cli',
version: '7.160.0',
pjson: {
engines: {
node: 'node-v16.17.0',
Expand Down

0 comments on commit e8f0e1e

Please sign in to comment.