From 183a713c1fe33185b97f74c346d7d248a00bd1f1 Mon Sep 17 00:00:00 2001 From: Graham Aitken Date: Fri, 22 Mar 2024 21:55:23 +0000 Subject: [PATCH] Updated assertions to work with assets in production mode --- tests/Pest/Expectations/ToHaveCorrectHeaderValues.php | 1 - tests/Pest/Expectations/ToHaveCorrectHtmlBody.php | 2 +- tests/Pest/Expectations/ToHaveCorrectHtmlHead.php | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/Pest/Expectations/ToHaveCorrectHeaderValues.php b/tests/Pest/Expectations/ToHaveCorrectHeaderValues.php index 423930c6..51a80faf 100644 --- a/tests/Pest/Expectations/ToHaveCorrectHeaderValues.php +++ b/tests/Pest/Expectations/ToHaveCorrectHeaderValues.php @@ -25,7 +25,6 @@ $this ->toHaveKebabCaseKeys() - ->toHaveCount(5) ->toHaveKeys([ 'cache-control', 'date', diff --git a/tests/Pest/Expectations/ToHaveCorrectHtmlBody.php b/tests/Pest/Expectations/ToHaveCorrectHtmlBody.php index 323b4a74..75d1bc89 100644 --- a/tests/Pest/Expectations/ToHaveCorrectHtmlBody.php +++ b/tests/Pest/Expectations/ToHaveCorrectHtmlBody.php @@ -24,7 +24,7 @@ ->assertSeeInOrder([ '', '
', + '>', '', '', ], false); diff --git a/tests/Pest/Expectations/ToHaveCorrectHtmlHead.php b/tests/Pest/Expectations/ToHaveCorrectHtmlHead.php index 1cea11e5..1a3dab6d 100644 --- a/tests/Pest/Expectations/ToHaveCorrectHtmlHead.php +++ b/tests/Pest/Expectations/ToHaveCorrectHtmlHead.php @@ -43,12 +43,6 @@ '', - '', - '', - '', '', ], false);