generated from salesforcecli/plugin-template-sf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove deprecated sfdx-core references (#562)
* fix: remove deprecated core aliasAccessor methods * test: alias nuts don't expect consistent order of aliases * refactor: share error handler * chore: rename from pr feedback
- Loading branch information
Showing
12 changed files
with
335 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,8 @@ describe('alias list NUTs', () => { | |
|
||
it('lists multiple results correctly JSON', () => { | ||
const result = execCmd('alias list --json', { ensureExitCode: 0 }).jsonOutput?.result; | ||
expect(result).to.deep.equal([ | ||
expect(result).lengthOf(3); | ||
[ | ||
{ | ||
alias: 'DevHub', | ||
value: '[email protected]', | ||
|
@@ -89,7 +90,7 @@ describe('alias list NUTs', () => { | |
alias: 'user', | ||
value: '[email protected]', | ||
}, | ||
]); | ||
].map((expected) => expect(result).to.deep.include(expected)); | ||
}); | ||
|
||
it('lists multiple results correctly stdout', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,8 +68,8 @@ describe('alias unset NUTs', () => { | |
]); | ||
|
||
const res = execCmd<AliasResults>('alias list --json', { ensureExitCode: 0 }).jsonOutput?.result; | ||
|
||
expect(res).to.deep.equal([ | ||
expect(res).lengthOf(2); | ||
[ | ||
{ | ||
alias: 'Admin', | ||
value: '[email protected]', | ||
|
@@ -78,7 +78,7 @@ describe('alias unset NUTs', () => { | |
alias: 'user', | ||
value: '[email protected]', | ||
}, | ||
]); | ||
].map((expected) => expect(res).to.deep.include(expected)); | ||
}); | ||
|
||
it('alias unset DevHub', () => { | ||
|
@@ -118,8 +118,8 @@ describe('alias unset NUTs', () => { | |
|
||
it('alias unset --json', () => { | ||
const result = execCmd('alias unset DevHub user --json', { ensureExitCode: 0 }).jsonOutput?.result; | ||
|
||
expect(result).to.deep.equal([ | ||
expect(result).lengthOf(2); | ||
[ | ||
{ | ||
alias: 'DevHub', | ||
success: true, | ||
|
@@ -130,7 +130,7 @@ describe('alias unset NUTs', () => { | |
success: true, | ||
value: '[email protected]', | ||
}, | ||
]); | ||
].map((expected) => expect(result).to.deep.include(expected)); | ||
|
||
const res = execCmd('alias list --json', { ensureExitCode: 0 }).jsonOutput?.result; | ||
|
||
|
@@ -155,8 +155,8 @@ describe('alias unset NUTs', () => { | |
|
||
it('removes all aliases when passing --all', () => { | ||
const result = execCmd('alias unset --all --no-prompt --json', { ensureExitCode: 0 }).jsonOutput?.result; | ||
|
||
expect(result).to.deep.equal([ | ||
expect(result).lengthOf(3); | ||
[ | ||
{ | ||
alias: 'Admin', | ||
success: true, | ||
|
@@ -172,7 +172,7 @@ describe('alias unset NUTs', () => { | |
success: true, | ||
value: '[email protected]', | ||
}, | ||
]); | ||
].map((expected) => expect(result).to.deep.include(expected)); | ||
|
||
const res = execCmd('alias list --json', { ensureExitCode: 0 }).jsonOutput?.result; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.