Skip to content

Commit

Permalink
WB-784: fix(tests): simplify StateDefinitionTypeTest result callback
Browse files Browse the repository at this point in the history
Remove unnecessary parameters from the 'result' callback in the StateDefinitionTypeTest to simplify the test logic and ensure compatibility with current use cases.
  • Loading branch information
deligoez committed Dec 12, 2024
1 parent 8a3a310 commit 0d8c68f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/StateDefinitionTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

use Illuminate\Support\Carbon;
use Tarfinlabs\EventMachine\Actor\Machine;
use Tarfinlabs\EventMachine\ContextManager;
use Tarfinlabs\EventMachine\Behavior\EventBehavior;
use Tarfinlabs\EventMachine\Enums\StateDefinitionType;
use Tarfinlabs\EventMachine\Definition\MachineDefinition;
use Tarfinlabs\EventMachine\Tests\Stubs\Results\GreenResult;
Expand Down Expand Up @@ -72,7 +70,7 @@
],
'yellow' => [
'type' => 'final',
'result' => function (ContextManager $context, EventBehavior $event): Carbon {
'result' => function (): Carbon {
return now();
},
],
Expand Down

0 comments on commit 0d8c68f

Please sign in to comment.