@@ -12,10 +12,9 @@ public void Defaults_WhenNoArgs_AreApplied()
1212 {
1313 var cfg = AppConfig . FromArgs ( [ ] ) ;
1414
15- Assert . Equal ( 8080 , cfg . HttpPort ) ;
15+ Assert . Equal ( 8081 , cfg . HttpPort ) ;
1616 Assert . True ( cfg . HttpsEnabled ) ; // default is true after our change
1717 Assert . Equal ( 8443 , cfg . HttpsPort ) ;
18- Assert . Equal ( "" , cfg . AllowedOrigins ) ;
1918 }
2019
2120 // ── CLI args ─────────────────────────────────────────────────────────────
@@ -41,22 +40,14 @@ public void NoHttps_Flag_DisablesHttps()
4140 Assert . False ( cfg . HttpsEnabled ) ;
4241 }
4342
44- [ Fact ]
45- public void Cors_ParsedFromCli ( )
46- {
47- var cfg = AppConfig . FromArgs ( [ "--cors" , "http://localhost:3000" ] ) ;
48- Assert . Equal ( "http://localhost:3000" , cfg . AllowedOrigins ) ;
49- }
50-
5143 [ Fact ]
5244 public void MultipleArgs_AllParsed ( )
5345 {
54- var cfg = AppConfig . FromArgs ( [ "--port" , "7070" , "--https-port" , "7443" , "--no-https" , "--cors" , "https://example.com" ] ) ;
46+ var cfg = AppConfig . FromArgs ( [ "--port" , "7070" , "--https-port" , "7443" , "--no-https" ] ) ;
5547
5648 Assert . Equal ( 7070 , cfg . HttpPort ) ;
5749 Assert . Equal ( 7443 , cfg . HttpsPort ) ;
5850 Assert . False ( cfg . HttpsEnabled ) ;
59- Assert . Equal ( "https://example.com" , cfg . AllowedOrigins ) ;
6051 }
6152
6253 // ── Environment variables ────────────────────────────────────────────────
@@ -117,13 +108,13 @@ public void Cli_TakesPriorityOverEnv()
117108 public void InvalidPortArg_UsesDefault ( )
118109 {
119110 var cfg = AppConfig . FromArgs ( [ "--port" , "notanumber" ] ) ;
120- Assert . Equal ( 8080 , cfg . HttpPort ) ;
111+ Assert . Equal ( 8081 , cfg . HttpPort ) ;
121112 }
122113
123114 [ Fact ]
124115 public void MissingPortValue_UsesDefault ( )
125116 {
126117 var cfg = AppConfig . FromArgs ( [ "--port" ] ) ; // value missing
127- Assert . Equal ( 8080 , cfg . HttpPort ) ;
118+ Assert . Equal ( 8081 , cfg . HttpPort ) ;
128119 }
129120}
0 commit comments