18 lines
630 B
PHP
18 lines
630 B
PHP
<?php
|
|
|
|
it('ships a Filament notifications asset compatible with Livewire v4 message hook order', function () {
|
|
$js = file_get_contents(public_path('js/filament/notifications/notifications.js'));
|
|
|
|
$shim = file_get_contents(public_path('js/tenantpilot/livewire-intercept-shim.js'));
|
|
|
|
expect($js)
|
|
->toContain('onFinish')
|
|
->and($js)->toContain('onSuccess')
|
|
->and($js)->not->toContain('onRender');
|
|
|
|
expect($shim)
|
|
->toContain('TenantPilot shim')
|
|
->and($shim)->toContain('Livewire.interceptMessage')
|
|
->and($shim)->toContain('__tenantpilotInterceptMessageShimApplied');
|
|
});
|