Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Aug 27, 2024
1 parent 4d4c90a commit db7b3e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Actions/Logs/GetTriggers.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function run(): array
->get()
->pluck('trigger')
->filter() // Remove null values
->values()
->mapWithKeys(fn (string $value) => [$value => $value])
->toArray()
);
Expand Down
5 changes: 4 additions & 1 deletion tests/Feature/Logs/GetTriggersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
'trigger' => 'bar',
]);

expect(GetTriggers::resolve()->run())->toEqualCanonicalizing(['foo', 'bar']);
expect(GetTriggers::resolve()->run())->toEqualCanonicalizing([
'foo' => 'foo',
'bar' => 'bar',
]);
});

0 comments on commit db7b3e3

Please sign in to comment.