diff --git a/packages/framework/tests/Unit/Facades/ViteFacadeTest.php b/packages/framework/tests/Unit/Facades/ViteFacadeTest.php
index 60d2e7f630c..0f1c8d3c155 100644
--- a/packages/framework/tests/Unit/Facades/ViteFacadeTest.php
+++ b/packages/framework/tests/Unit/Facades/ViteFacadeTest.php
@@ -59,6 +59,22 @@ public function testRunningReturnsFalseWhenViteHotFileDoesNotExist()
$this->assertFalse(Vite::running());
}
+ public function testItAlwaysImportsClientModule()
+ {
+ $html = Vite::assets([]);
+
+ $this->assertStringContainsString('', (string) $html);
+
+ $html = Vite::assets(['foo.js']);
+
+ $this->assertStringContainsString('', (string) $html);
+ }
+
+ public function testItDoesNotIncludeUnknownExtensions()
+ {
+ $this->assertSame((string) Vite::assets([]), (string) Vite::assets(['foo.txt']));
+ }
+
public function testAssetsMethodReturnsHtmlString()
{
$this->assertInstanceOf(HtmlString::class, Vite::assets([]));