Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebowczyk committed Jun 2, 2024
1 parent 882832a commit 9b92a84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Feature/Extras/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
$add = new TestModule;
$addition = $add->withArgs(numberA: 1, numberB: 2);

expect($addition->asExample()->toJson())
->toBe("{inputs:{numberA:1,numberB:2},outputs:{sum:3}}");
})->only();
expect($addition->asExample()->input())->toBe('{"numberA":1,"numberB":2}');
expect($addition->asExample()->output())->toBe(['sum' => 3]);
});

it('can process a closure task', function() {
$add = function(int $a, int $b) : int {
Expand Down

0 comments on commit 9b92a84

Please sign in to comment.