HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/l/e/s/lesanew/anestetues2/vendor/roots/acorn/tests/Assets/LaravelMixMiddlewareTest.php
<?php

use Roots\Acorn\Assets\Middleware\LaravelMixMiddleware;
use Roots\Acorn\Tests\Test\TestCase;

use function Spatie\Snapshots\assertMatchesSnapshot;

uses(TestCase::class);

it('skips url modification if hot file is absent', function () {
    $middleware = new LaravelMixMiddleware;

    $config = $middleware->handle([
        'path' => $this->fixture('mix_no_bundle/public'),
        'url' => 'https://k.jo/public',
    ]);

    assertMatchesSnapshot($config['url']);
});

it('modifies url when hot file is present', function () {
    $middleware = new LaravelMixMiddleware;

    $config = $middleware->handle([
        'path' => $this->fixture('mix_no_bundle_hmr/public'),
        'url' => 'https://k.jo/public',
    ]);

    assertMatchesSnapshot($config['url']);
});