generated from salesforcecli/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1124 from salesforcecli/sh/clarify-package-name-flag
fix: clarify help docs and command output for package-name flag
- Loading branch information
Showing
4 changed files
with
17 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ describe('project retrieve start', () => { | |
const testOrg = new MockTestOrgData(); | ||
testOrg.tracksSource = true; | ||
let sfCommandUxStubs: ReturnType<typeof stubSfCommandUx>; | ||
let uxStubs: ReturnType<typeof stubUx>; | ||
|
||
testOrg.username = '[email protected]'; | ||
const packageXml = 'package.xml'; | ||
|
@@ -71,7 +72,7 @@ describe('project retrieve start', () => { | |
); | ||
|
||
sfCommandUxStubs = stubSfCommandUx($$.SANDBOX); | ||
stubUx($$.SANDBOX); | ||
uxStubs = stubUx($$.SANDBOX); | ||
stubSpinner($$.SANDBOX); | ||
$$.setConfigStubContents('SfProjectJson', { | ||
contents: { | ||
|
@@ -250,6 +251,13 @@ describe('project retrieve start', () => { | |
ensureRetrieveArgs({ packageOptions: packagenames, format: 'source' }); | ||
}); | ||
|
||
it('should display warning when using package-name flag', async () => { | ||
await RetrieveMetadata.run(['--package-name', 'package1']); | ||
expect(uxStubs.warn.firstCall.args[0]).to.equal( | ||
'Metadata from retrieved packages is meant for your reference only, not development.' | ||
); | ||
}); | ||
|
||
it('should pass along multiple packagenames', async () => { | ||
const manifest = 'package.xml'; | ||
const packagenames = ['package1', 'package2']; | ||
|