Skip to content

Commit

Permalink
[10.x] Use HtmlString in Vite fake (#49163)
Browse files Browse the repository at this point in the history
* use htmlstring

* test
  • Loading branch information
jasonvarga committed Nov 28, 2023
1 parent 1e03a4a commit b6cb872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected function withoutVite()
{
public function __invoke($entrypoints, $buildDirectory = null)
{
return '';
return new HtmlString('');
}

public function __call($method, $parameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function testWithoutViteBindsEmptyHandlerAndReturnsInstance()
{
$instance = $this->withoutVite();

$this->assertSame('', app(Vite::class)(['resources/js/app.js']));
$this->assertSame('', app(Vite::class)(['resources/js/app.js'])->toHtml());
$this->assertSame($this, $instance);
}

Expand Down

0 comments on commit b6cb872

Please sign in to comment.