Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray authored and github-actions[bot] committed Jan 13, 2025
1 parent ee59ee0 commit a1f0221
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/GithubIssueHandlerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ function getSignatureGenerator(DeduplicationHandler $handler): mixed
});

test('it throws exception when required config is missing', function () {
expect(fn() => ($this->factory)([]))->toThrow(\InvalidArgumentException::class);
expect(fn() => ($this->factory)(['repo' => 'test/repo']))->toThrow(\InvalidArgumentException::class);
expect(fn() => ($this->factory)(['token' => 'test-token']))->toThrow(\InvalidArgumentException::class);
expect(fn () => ($this->factory)([]))->toThrow(\InvalidArgumentException::class);
expect(fn () => ($this->factory)(['repo' => 'test/repo']))->toThrow(\InvalidArgumentException::class);
expect(fn () => ($this->factory)(['token' => 'test-token']))->toThrow(\InvalidArgumentException::class);
});

test('it configures buffer settings correctly', function () {
Expand All @@ -92,7 +92,7 @@ function getSignatureGenerator(DeduplicationHandler $handler): mixed
});

test('it can use file store driver', function () {
$path = sys_get_temp_dir() . '/dedup-test-' . uniqid() . '.log';
$path = sys_get_temp_dir().'/dedup-test-'.uniqid().'.log';

$logger = ($this->factory)([
...$this->config,
Expand Down Expand Up @@ -164,14 +164,14 @@ function getSignatureGenerator(DeduplicationHandler $handler): mixed
});

test('it throws exception for invalid deduplication time', function () {
expect(fn() => ($this->factory)([
expect(fn () => ($this->factory)([
...$this->config,
'deduplication' => [
'time' => -1,
],
]))->toThrow(\InvalidArgumentException::class, 'Deduplication time must be a positive integer');

expect(fn() => ($this->factory)([
expect(fn () => ($this->factory)([
...$this->config,
'deduplication' => [
'time' => 'invalid',
Expand Down

0 comments on commit a1f0221

Please sign in to comment.