File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -690,17 +690,17 @@ describe("config", () => {
690690 } ) ;
691691
692692 describe ( "httpPort" , ( ) => {
693- it ( "must be above 1 " , ( ) => {
693+ it ( "must be above 0 " , ( ) => {
694694 const onErrorFn = vi . fn ( ) ;
695695 const onExitFn = vi . fn < CreateUserConfigHelpers [ "closeProcess" ] > ( ) ;
696696 createUserConfig ( {
697697 onError : onErrorFn ,
698698 closeProcess : onExitFn ,
699- cliArguments : [ "--httpPort" , "0 " ] ,
699+ cliArguments : [ "--httpPort" , "-1 " ] ,
700700 } ) ;
701701 expect ( onErrorFn ) . toBeCalledWith (
702702 expect . stringContaining (
703- "Invalid configuration for the following fields:\nhttpPort - Invalid httpPort: must be at least 1 "
703+ "Invalid configuration for the following fields:\nhttpPort - Invalid httpPort: must be at least 0 "
704704 )
705705 ) ;
706706 expect ( onExitFn ) . toBeCalledWith ( 1 ) ;
You can’t perform that action at this time.
0 commit comments