@@ -9,31 +9,31 @@ namespace InertiaCoreTests;
99public partial class Tests
1010{
1111 [ Test ]
12- [ Description ( "Test SSR dispatch should not dispatch by default when no bundle exists" ) ]
12+ [ Description ( "Test SSR dispatch should not dispatch by default when no bundle exists and bundle is required " ) ]
1313 public void TestSsrDispatchDefaultBehaviorWithoutBundle ( )
1414 {
1515 var httpClientFactory = new Mock < IHttpClientFactory > ( ) ;
1616 var environment = new Mock < IWebHostEnvironment > ( ) ;
1717 environment . SetupGet ( x => x . ContentRootPath ) . Returns ( Path . GetTempPath ( ) ) ;
1818
1919 var options = new Mock < IOptions < InertiaOptions > > ( ) ;
20- options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrDispatchWithoutBundle = false } ) ;
20+ options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrEnsureBundleExists = true } ) ;
2121
2222 var gateway = new Gateway ( httpClientFactory . Object , options . Object , environment . Object ) ;
2323
2424 Assert . That ( gateway . ShouldDispatch ( ) , Is . False ) ;
2525 }
2626
2727 [ Test ]
28- [ Description ( "Test SSR dispatch should dispatch when SsrDispatchWithoutBundle is enabled " ) ]
28+ [ Description ( "Test SSR dispatch should dispatch when SsrEnsureBundleExists is disabled " ) ]
2929 public void TestSsrDispatchWithoutBundleEnabled ( )
3030 {
3131 var httpClientFactory = new Mock < IHttpClientFactory > ( ) ;
3232 var environment = new Mock < IWebHostEnvironment > ( ) ;
3333 environment . SetupGet ( x => x . ContentRootPath ) . Returns ( Path . GetTempPath ( ) ) ;
3434
3535 var options = new Mock < IOptions < InertiaOptions > > ( ) ;
36- options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrDispatchWithoutBundle = true } ) ;
36+ options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrEnsureBundleExists = false } ) ;
3737
3838 var gateway = new Gateway ( httpClientFactory . Object , options . Object , environment . Object ) ;
3939
@@ -58,7 +58,7 @@ public void TestSsrDispatchWithBundleExists()
5858 environment . SetupGet ( x => x . ContentRootPath ) . Returns ( tempDir ) ;
5959
6060 var options = new Mock < IOptions < InertiaOptions > > ( ) ;
61- options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrDispatchWithoutBundle = false } ) ;
61+ options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrEnsureBundleExists = true } ) ;
6262
6363 var gateway = new Gateway ( httpClientFactory . Object , options . Object , environment . Object ) ;
6464
@@ -74,7 +74,7 @@ public void TestSsrDispatchWithBundleExists()
7474 }
7575
7676 [ Test ]
77- [ Description ( "Test SSR dispatch should dispatch when either bundle exists or dispatch without bundle is enabled " ) ]
77+ [ Description ( "Test SSR dispatch should dispatch when either bundle exists or SsrEnsureBundleExists is disabled " ) ]
7878 public void TestSsrDispatchWithBundleAndDispatchWithoutBundleEnabled ( )
7979 {
8080 var tempDir = Path . GetTempPath ( ) ;
@@ -91,7 +91,7 @@ public void TestSsrDispatchWithBundleAndDispatchWithoutBundleEnabled()
9191 environment . SetupGet ( x => x . ContentRootPath ) . Returns ( tempDir ) ;
9292
9393 var options = new Mock < IOptions < InertiaOptions > > ( ) ;
94- options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrDispatchWithoutBundle = true } ) ;
94+ options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrEnsureBundleExists = false } ) ;
9595
9696 var gateway = new Gateway ( httpClientFactory . Object , options . Object , environment . Object ) ;
9797
@@ -124,7 +124,7 @@ public void TestSsrDispatchChecksMultipleBundlePaths()
124124 environment . SetupGet ( x => x . ContentRootPath ) . Returns ( tempDir ) ;
125125
126126 var options = new Mock < IOptions < InertiaOptions > > ( ) ;
127- options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrDispatchWithoutBundle = false } ) ;
127+ options . SetupGet ( x => x . Value ) . Returns ( new InertiaOptions { SsrEnsureBundleExists = true } ) ;
128128
129129 var gateway = new Gateway ( httpClientFactory . Object , options . Object , environment . Object ) ;
130130
0 commit comments