Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 29, 2023
1 parent 181b43f commit 8f3f300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/PdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
expect($this->targetPath)
->toHaveDimensions(419, 595)
->toContainText('This is a test');
});
})->skipOnLinux();

it('can accept the orientation', function () {
Pdf::view('test')
Expand Down
4 changes: 2 additions & 2 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ function assertMatchesPdfSnapshot(string $pdfPath): void
$expectedText = [$expectedText];
}

$actualText = strtolower(str_replace(' ', '', $actualText));
$actualText = strtolower(preg_replace('/\s+/', '', $actualText));

foreach ($expectedText as $singleText) {
$singleText = strtolower(str_replace(' ', '', $singleText));
$singleText = strtolower(preg_replace('/\s+/', '', $singleText));

expect(str_contains($actualText, $singleText))->toBeTrue(
"Expected text `{$singleText}` not found in `{$actualText}`"
Expand Down

0 comments on commit 8f3f300

Please sign in to comment.