3
3
using InertiaCore . Models ;
4
4
using InertiaCore . Utils ;
5
5
using Microsoft . AspNetCore . Builder ;
6
- using Microsoft . Extensions . Options ;
7
6
using Microsoft . AspNetCore . Http ;
8
7
using Microsoft . AspNetCore . Mvc ;
8
+ using Microsoft . Extensions . Options ;
9
9
using Moq ;
10
- using Microsoft . Extensions . DependencyInjection ;
11
10
12
11
namespace InertiaCoreTests ;
13
12
@@ -73,7 +72,8 @@ public void TestNotHot()
73
72
}
74
73
75
74
[ Test ]
76
- [ Description ( "Test if the Vite Helper handles generating HTML tags for both JS and CSS from HMR and the manifest properly." ) ]
75
+ [ Description (
76
+ "Test if the Vite Helper handles generating HTML tags for both JS and CSS from HMR and the manifest properly." ) ]
77
77
public void TestViteInput ( )
78
78
{
79
79
var fileSystem = new MockFileSystem ( new Dictionary < string , MockFileData > ( ) ) ;
@@ -226,7 +226,7 @@ public async Task TestViteVersion()
226
226
fileSystem . AddFile ( @"/wwwroot/build/manifest.json" ,
227
227
new MockFileData ( "{\" app.tsx\" : {\" file\" : \" assets/main-19038c6a.js\" }}" ) ) ;
228
228
229
- _factory . Version ( ( ) => Vite . GetManifestHash ( ) ) ;
229
+ _factory . Version ( Vite . GetManifestHash ) ;
230
230
231
231
var response = _factory . Render ( "Test/Page" , new
232
232
{
@@ -247,7 +247,7 @@ public async Task TestViteVersion()
247
247
248
248
Assert . Multiple ( ( ) =>
249
249
{
250
- Assert . That ( result , Is . InstanceOf ( typeof ( JsonResult ) ) ) ;
250
+ Assert . That ( result , Is . InstanceOf < JsonResult > ( ) ) ;
251
251
252
252
var json = ( result as JsonResult ) ? . Value ;
253
253
Assert . That ( ( json as Page ) ? . Version , Is . EqualTo ( "bba1afd1066309f4a69430e0c446ba8d" ) ) ;
0 commit comments