Skip to content

Commit

Permalink
Updated assertions to work with assets in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
musimana committed Mar 22, 2024
1 parent 87a2f62 commit 183a713
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion tests/Pest/Expectations/ToHaveCorrectHeaderValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

$this
->toHaveKebabCaseKeys()
->toHaveCount(5)
->toHaveKeys([
'cache-control',
'date',
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest/Expectations/ToHaveCorrectHtmlBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
->assertSeeInOrder([
'<body class="font-sans antialiased">',
'<div id="app" data-page="{',
'}"></div>',
'></div>',
'</body>',
'</html>',
], false);
Expand Down
6 changes: 0 additions & 6 deletions tests/Pest/Expectations/ToHaveCorrectHtmlHead.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@
'<script type="text/javascript">',
'Ziggy',
'</script>',
'<script type="module" src="http://[::1]:',
'/@vite/client"></script>',
'<script type="module" src="http://[::1]:',
'/resources/js/app.js"></script>',
'<script type="module" src="http://[::1]:',
'/resources/js/Pages/' . $template . '.vue"></script>',
'</head>',
], false);

Expand Down

0 comments on commit 183a713

Please sign in to comment.