@@ -81,16 +81,18 @@ describe('base-commands', () => {
81
81
setUpTest ( [ '-l' , 'debug' ] , { setUpUserConfig : ( ) => 0 } )
82
82
. exit ( 1 )
83
83
. it ( 'should fail for a non-existent active profile' , ctx => {
84
- expect ( ctx . stderr ) . to . contain ( 'No profile configured' ) ;
85
- expect ( ctx . stderr ) . to . contain ( 'To create the profile, run: twilio profiles:create' ) ;
84
+ expect ( ctx . stderr ) . to . contain ( 'Could not find profile' ) ;
85
+ expect ( ctx . stderr ) . to . contain ( 'To create the profile, run:' ) ;
86
+ expect ( ctx . stderr ) . to . contain ( 'twilio profiles:create' ) ;
86
87
expect ( ctx . stderr ) . to . contain ( 'TWILIO_ACCOUNT_SID' ) ;
87
88
} ) ;
88
89
89
90
setUpTest ( [ '-p' , 'alt' , '-l' , 'debug' ] )
90
91
. exit ( 1 )
91
92
. it ( 'should fail for a non-existent profile' , ctx => {
92
- expect ( ctx . stderr ) . to . contain ( 'No profile configured' ) ;
93
- expect ( ctx . stderr ) . to . contain ( 'To create the profile, run: twilio profiles:create -p alt' ) ;
93
+ expect ( ctx . stderr ) . to . contain ( 'Could not find profile' ) ;
94
+ expect ( ctx . stderr ) . to . contain ( 'To create the profile, run:' ) ;
95
+ expect ( ctx . stderr ) . to . contain ( 'twilio profiles:create --profile "alt"' ) ;
94
96
expect ( ctx . stderr ) . to . contain ( 'TWILIO_ACCOUNT_SID' ) ;
95
97
} ) ;
96
98
@@ -105,9 +107,8 @@ describe('base-commands', () => {
105
107
. exit ( 1 )
106
108
. it ( 'should handle a secure storage error' , ctx => {
107
109
expect ( ctx . stderr ) . to . contain ( 'Could not get credentials for profile "twilio-cli-unit-testing"' ) ;
108
- expect ( ctx . stderr ) . to . contain (
109
- 'To reconfigure the profile, run: twilio profiles:create -p twilio-cli-unit-testing'
110
- ) ;
110
+ expect ( ctx . stderr ) . to . contain ( 'To reconfigure the profile, run:' ) ;
111
+ expect ( ctx . stderr ) . to . contain ( 'twilio profiles:create --profile "twilio-cli-unit-testing"' ) ;
111
112
} ) ;
112
113
113
114
setUpTest ( [ ] , { commandClass : ThrowingClientCommand } )
0 commit comments