@@ -41,20 +41,20 @@ describe('env create scratch NUTs', () => {
4141
4242 describe ( 'flag failures' , ( ) => {
4343 it ( 'non-existent config file' , ( ) => {
44- execCmd ( 'env:create:scratch -f badfile.json' , { ensureExitCode : 1 } ) ;
44+ execCmd ( 'env:create:scratch -f badfile.json' , { ensureExitCode : 'nonZero' } ) ;
4545 } ) ;
4646 it ( 'wait zero' , ( ) => {
47- execCmd ( 'env:create:scratch -f config/project-scratch-def.json --wait 0' , { ensureExitCode : 1 } ) ;
47+ execCmd ( 'env:create:scratch -f config/project-scratch-def.json --wait 0' , { ensureExitCode : 'nonZero' } ) ;
4848 } ) ;
4949 it ( 'no edition or config' , ( ) => {
50- execCmd ( 'env:create:scratch' , { ensureExitCode : 1 } ) ;
50+ execCmd ( 'env:create:scratch' , { ensureExitCode : 'nonZero' } ) ;
5151 } ) ;
5252 it ( 'days out of bounds' , ( ) => {
53- execCmd ( 'env:create:scratch -f config/project-scratch-def.json -d 50' , { ensureExitCode : 1 } ) ;
53+ execCmd ( 'env:create:scratch -f config/project-scratch-def.json -d 50' , { ensureExitCode : 'nonZero' } ) ;
5454 } ) ;
5555 it ( 'prompts for client secret if client id present and times out' , ( ) => {
5656 const error = execCmd ( 'env:create:scratch --edition developer --client-id someConnectedApp' , {
57- ensureExitCode : 1 ,
57+ ensureExitCode : 'nonZero' ,
5858 } ) . shellOutput ;
5959 expect ( error . stdout ) . to . include ( messages . getMessage ( 'prompt.secret' ) ) ;
6060 expect ( error . stderr ) . to . include ( `Timed out after ${ secretTimeout } ms.` ) ;
0 commit comments