File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,20 +13,10 @@ describe("bump", () => {
1313 // Run the CLI without any arguments.
1414 // It will prompt the user and wait forever, so add a timeout.
1515 this . timeout ( Math . max ( 10000 , this . timeout ( ) ) ) ;
16- let bump = chaiExec ( "" , { timeout : 5000 } ) ;
17-
18- try {
19- // It should have prompted for input
20- expect ( bump . stdout ) . to . contain ( "The current version in package.json is 1.0.0\nHow would you like to bump it? (Use arrow keys)" ) ;
21- }
22- catch ( error ) {
23- console . log (
24- "====================== begin bump output ======================\n" ,
25- bump ,
26- "\n====================== end bump output ======================"
27- ) ;
28- throw error ;
29- }
16+ let bump = chaiExec ( "" , { timeout : 6000 } ) ;
17+
18+ // It should have prompted for input
19+ expect ( bump . stdout ) . to . contain ( "The current version in package.json is 1.0.0\nHow would you like to bump it? (Use arrow keys)" ) ;
3020 } ) ;
3121
3222 it ( "should error if an invalid argument is used" , ( ) => {
You can’t perform that action at this time.
0 commit comments