Skip to content

Commit

Permalink
Update DropzoneTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dasundev committed Dec 30, 2023
1 parent b0ab453 commit d0d2ee5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Feature/DropzoneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
});

it('can upload file', function () {
$image = UploadedFile::fake()->image('foo.png');

Livewire\Livewire::test(Dropzone::class, ['name' => 'foo'])
->set('upload', $image)
->set('upload', UploadedFile::fake()->image('foo.png'))
->assertDispatched('foo:fileAdded');
});

0 comments on commit d0d2ee5

Please sign in to comment.