Skip to content

Commit

Permalink
Refactor link edit button in links index view
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPunyapal committed Jul 17, 2024
1 parent edccc7e commit c28e22d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/Unit/Livewire/Links/EditTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@

$component = Livewire::actingAs($user)->test(Edit::class);

$component
->call('edit', $link->id)
->set('url', 'https://example.com')
->call('update');
$component->call('edit', $link->id);
$component->set('url', 'https://example.com');
$component->call('update');

$link->refresh();

Expand All @@ -90,10 +89,9 @@

$component = Livewire::actingAs($user)->test(Edit::class);

$component
->call('edit', $link->id)
->set('description', 'Example')
->call('update');
$component->call('edit', $link->id);
$component->set('description', 'Example');
$component->call('update');

$link->refresh();

Expand Down

0 comments on commit c28e22d

Please sign in to comment.