Skip to content

Commit

Permalink
Fix tests because of new jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Oct 30, 2024
1 parent cfdb396 commit 6f3bfc4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Feature/GenerateResponsiveVersionsCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
return isset($job->getParams()['fm']) && $job->getParams()['fm'] === 'webp';
})->count();

expect($noFormatJobCount)->toBe(3);
expect($noFormatJobCount)->toBe(4);
expect($webpFormatJobCount)->toBe(3);
Queue::assertPushed(GenerateGlideImageJob::class, 6);
Queue::assertPushed(GenerateGlideImageJob::class, 7);
});

it('dispatches less jobs when webp is disabled', function () {
Expand All @@ -58,9 +58,9 @@
return isset($job->getParams()['fm']) && $job->getParams()['fm'] === 'webp';
})->count();

expect($noFormatJobCount)->toBe(3);
expect($noFormatJobCount)->toBe(4);
expect($webpFormatJobCount)->toBe(0);
Queue::assertPushed(GenerateGlideImageJob::class, 3);
Queue::assertPushed(GenerateGlideImageJob::class, 4);
});

it('dispatches more jobs when avif and webp is enabled', function () {
Expand All @@ -87,10 +87,10 @@
return isset($job->getParams()['fm']) && $job->getParams()['fm'] === 'avif';
})->count();

expect($noFormatJobCount)->toBe(3);
expect($noFormatJobCount)->toBe(4);
expect($webpFormatJobCount)->toBe(3);
expect($avifFormatJobCount)->toBe(3);
Queue::assertPushed(GenerateGlideImageJob::class, 9);
Queue::assertPushed(GenerateGlideImageJob::class, 10);
});

it('can skip excluded containers', function () {
Expand Down

0 comments on commit 6f3bfc4

Please sign in to comment.