Skip to content

Commit 49f19f7

Browse files
committed
Fix tests
1 parent 885fb90 commit 49f19f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/PublishablesTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
it('publishes assets after install', function () {
77
Artisan::call('statamic:install');
88

9+
expect(file_exists(public_path('vendor/livewire-forms/css/filepond.css')))->toBeTrue();
10+
expect(file_exists(public_path('vendor/livewire-forms/js/filepond.js')))->toBeTrue();
11+
expect(file_exists(public_path('vendor/livewire-forms/js/form.js')))->toBeTrue();
12+
expect(file_exists(public_path('vendor/livewire-forms/js/grecaptcha.js')))->toBeTrue();
913
expect(file_exists(public_path('vendor/livewire-forms/js/livewire-forms.js')))->toBeTrue();
1014

15+
File::delete(public_path('vendor/livewire-forms/css/filepond.css'));
16+
File::delete(public_path('vendor/livewire-forms/js/filepond.js'));
17+
File::delete(public_path('vendor/livewire-forms/js/form.js'));
18+
File::delete(public_path('vendor/livewire-forms/js/grecaptcha.js'));
1119
File::delete(public_path('vendor/livewire-forms/js/livewire-forms.js'));
1220
});

0 commit comments

Comments
 (0)