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.
- Loading branch information
1 parent
d6ff258
commit 960a292
Showing
3 changed files
with
19 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,8 +65,8 @@ describe('alias list NUTs', () => { | |
env: { ...process.env, SF_NO_TABLE_STYLE: 'true' }, | ||
}).shellOutput; | ||
expect(res).to.include('Alias List'); // Table header | ||
expect(res).to.include('alias value'); | ||
expect(res).to.include('DevHub [email protected]'); | ||
expect(res).to.include('alias value'); | ||
expect(res).to.include('DevHub [email protected]'); | ||
}); | ||
}); | ||
|
||
|
@@ -103,10 +103,10 @@ describe('alias list NUTs', () => { | |
}).shellOutput; | ||
|
||
expect(res).to.include('Alias List'); // Table header | ||
expect(res).to.include('alias value'); | ||
expect(res).to.include('DevHub [email protected]'); | ||
expect(res).to.include('Admin [email protected]'); | ||
expect(res).to.include('user [email protected]'); | ||
expect(res).to.include('alias value'); | ||
expect(res).to.include('DevHub [email protected]'); | ||
expect(res).to.include('Admin [email protected]'); | ||
expect(res).to.include('user [email protected]'); | ||
}); | ||
}); | ||
}); |
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 |
---|---|---|
|
@@ -54,9 +54,9 @@ describe('alias set NUTs', () => { | |
}).shellOutput; | ||
|
||
expect(res).to.include('Alias Set'); // Table header | ||
expect(res).to.include('alias value success'); | ||
expect(res).to.include('DevHub [email protected] true'); | ||
expect(res).to.include('Admin [email protected] true'); | ||
expect(res).to.match(/alias\s+value\s+success/); | ||
expect(res).to.match(/DevHub\s+devhuborg@salesforce.com\s+true/); | ||
expect(res).to.match(/Admin\s+admin@salesforce.com\s+true/); | ||
}); | ||
|
||
it('alias set with spaces in value', () => { | ||
|
@@ -128,9 +128,9 @@ describe('alias set NUTs', () => { | |
}).shellOutput; | ||
|
||
expect(res).to.include('Alias Set'); // Table header | ||
expect(res).to.include('alias value success'); | ||
expect(res).to.include('DevHub [email protected] true'); | ||
expect(res).to.include('Admin [email protected] true'); | ||
expect(res).to.match(/alias\s+value\s+success/); | ||
expect(res).to.match(/DevHub\s+newdevhub@salesforce.com\s+true/); | ||
expect(res).to.match(/Admin\s+admin@salesforce.com\s+true/); | ||
}); | ||
}); | ||
|
||
|
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 |
---|---|---|
|
@@ -46,8 +46,8 @@ describe('alias unset NUTs', () => { | |
}).shellOutput; | ||
|
||
expect(res).to.include('Alias Unset'); // Table header | ||
expect(res).to.include('alias value success'); | ||
expect(res).to.include('noAlias true'); | ||
expect(res).to.match(/alias\s+value\s+success/); | ||
expect(res).to.match(/noAlias\s+true/); | ||
}); | ||
}); | ||
|
||
|
@@ -89,8 +89,8 @@ describe('alias unset NUTs', () => { | |
}).shellOutput; | ||
|
||
expect(res).to.include('Alias Unset'); // Table header | ||
expect(res).to.include('alias value success'); | ||
expect(res).to.include('DevHub [email protected] true'); | ||
expect(res).to.match(/alias\s+value\s+success/); | ||
expect(res).to.match(/DevHub\s+mydevhuborg@salesforce.com\s+true/); | ||
}); | ||
}); | ||
|
||
|
@@ -151,9 +151,9 @@ describe('alias unset NUTs', () => { | |
}).shellOutput; | ||
|
||
expect(res).to.include('Alias Unset'); // Table header | ||
expect(res).to.include('alias value success'); | ||
expect(res).to.include('DevHub [email protected] true'); | ||
expect(res).to.include('user [email protected] true'); | ||
expect(res).to.match(/alias\s+value\s+success/); | ||
expect(res).to.match(/DevHub\s+mydevhuborg@salesforce.com\s+true/); | ||
expect(res).to.match(/user\s+user@salesforce.com\s+true/); | ||
}); | ||
|
||
it('removes all aliases when passing --all', () => { | ||
|