Skip to content

Commit

Permalink
Update Test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Feb 17, 2024
1 parent e1d9d34 commit 0b53225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/BrowsershotLambdaReferenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
it('generates reference hello-world-with-smileys.pdf', function () {
$pdf = BrowsershotLambda::html('<h1 style="font-weight: 400;">Hello world!! 👋🦫🫠</h1>')->pdf();
$pdfWithCorrectDates = $this->updateCreationDateAndModDateOfPdf($pdf);

$reference = file_get_contents(__DIR__.'/references/hello-world-with-smileys.pdf');

$this->assertEquals($reference, $pdfWithCorrectDates);
$this->assertPdfsAreSimilar($reference, $pdfWithCorrectDates, threshold: 200);
});

0 comments on commit 0b53225

Please sign in to comment.