From c7a5605d5966c32059b4a81198453e1c5e022e55 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Tue, 1 Apr 2025 21:08:29 +0100 Subject: Wrote test for queuing file not in manifest --- tests/Feature/AssetsTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Feature/AssetsTest.php b/tests/Feature/AssetsTest.php index 9614eee..164cffb 100644 --- a/tests/Feature/AssetsTest.php +++ b/tests/Feature/AssetsTest.php @@ -114,4 +114,13 @@ describe('queuing files', function() use ($newManifest) { expect($assets->getQueuedHeadFiles())->toBeArray()->toHaveLength(1); }); + + test('queue file not in manifest', function() use ($newManifest) { + $assets = app(Assets::class); + $url = 'https://lightscale.co.uk/test.css'; + $assets->queueStyle($url); + $results = $assets->getQueuedHeadFiles(); + expect($results)->toBeArray()->toHaveLength(1); + expect($results[0]->getUrl())->toBe($url); + }); }); -- cgit v1.2.3